booknlp / booknlp

BookNLP, a natural language processing pipeline for books

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No module named 'booknlp' after run 'Usage script'

GersonHMG opened this issue · comments

commented

Exception has occurred: ModuleNotFoundError
No module named 'booknlp'
File "C:..\booknlptest.py", line 1, in
from booknlp.booknlp import BookNLP
ModuleNotFoundError: No module named 'booknlp'

commented

the script:
`from booknlp.booknlp import BookNLP

model_params={
"pipeline":"entity,quote,supersense,event,coref",
"model":"big"
}

booknlp=BookNLP("en", model_params)

Input file to process

input_file="input_dir/bartleby_the_scrivener.txt"

Output directory to store resulting files in

output_directory="output_dir/bartleby/"

File within this directory will be named ${book_id}.entities, ${book_id}.tokens, etc.

book_id="bartleby"

booknlp.process(input_file, output_directory, book_id)`

commented

the pip installation was outside the conda environment