demo-model_XYZ.pt Not Found

pytorch

(GQZ) #1

I am trying to test OpenNMT-py and it always comes out an error " python translate.py -model demo-model_XYZ.pt -src data/src-test.txt -output pred.txt -replace_unk -verbose" when I run translate.py .

In data file, there is no such model.

Can anyone help?

Thanks


(Guillaume Klein) #2

demo-model_XYZ.pt is just a placeholder filename to show the command line usage. You should replace it by a model file that was actually produced by your training.