ottokart / punctuator2

A bidirectional recurrent neural network model with attention mechanism for restoring missing punctuation in unsegmented text
http://bark.phon.ioc.ee/punctuator
MIT License
657 stars 195 forks source link

problem with punctuator #69

Open DudinaValeria opened 3 years ago

DudinaValeria commented 3 years ago

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 commented 3 years ago

cat data.dev.txt | python punctuator.py <model_path> <model_output_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 commented 3 years ago

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