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

problem with punctuator #69

Open
DudinaValeria opened this issue Jan 30, 2021 · 2 comments
Open

problem with punctuator #69

DudinaValeria opened this issue Jan 30, 2021 · 2 comments

Comments

@DudinaValeria
Copy link

Printing this in cmd:
python punctuator.py C:\Users\dudina\bur.dev.txt C:\Users\dudina\new.txt
and getting mistake
Model = getattr(models, state["type"])
TypeError: list indices must be integers or slices, not str
I just downloaded scripts, had not changed anything
Can you help to solve it?

@ottokart
Copy link
Owner

ottokart commented Feb 2, 2021

cat data.dev.txt | python punctuator.py <model_path> <model_output_path>
<model_path> should refer to the path of the model downloaded from here: https://drive.google.com/drive/folders/0B7BsN5f2F1fZQnFsbzJ3TWxxMms (I recommend the Demo-Europarl-EN.pcl.

@DudinaValeria
Copy link
Author

Oh, such a stupid mistake)
Thank you so much!

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

2 participants