grammarly / gector

Official implementation of the papers "GECToR – Grammatical Error Correction: Tag, Not Rewrite" (BEA-20) and "Text Simplification by Tagging" (BEA-21)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Predict problem

CoderBinGe opened this issue · comments

Hi, Thanks for your work. I encountered a strange problem when predicting(run predict.py directly via PyCharm), as shown below:

image

I would appreciate if you could give some advice!

Hi
What command did you use?

Hi What command did you use?

Hi, It is ok when run with the following command:

python predict.py --model_path plm/roberta_1_gectorv2.th --vocab_path data/output_vocabulary/ --input_file test.txt --output_file result.txt --transformer_model roberta --special_tokens_fix 1

But when I set default values for these parameters(part of screenshot below) and run predict.py directly with PyCharm, I get the strange error in the screenshot above.

image