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 .
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.