Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run booknlp as .py file #1

Open
Hemandadish opened this issue Dec 12, 2021 · 0 comments
Open

Unable to run booknlp as .py file #1

Hemandadish opened this issue Dec 12, 2021 · 0 comments

Comments

@Hemandadish
Copy link

Hemandadish commented Dec 12, 2021

When I execute the .py script, I get some errror below given : @dbamman
Screenshot (22)

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 = "booknlpscr/pdf.txt"

Output directory to store resulting files in

output_directory = "pdf/"

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

book_id = "pdf"

booknlp.process(input_file, output_directory, book_id)

print(input_file)
#conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch

@Hemandadish Hemandadish changed the title Unable to run booknlp as .py file Unable to run booknlp as .py file @dbamman 1.0.7 Dec 12, 2021
@Hemandadish Hemandadish changed the title Unable to run booknlp as .py file @dbamman 1.0.7 Unable to run booknlp as .py file Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant