OpenNMT Forum

Onmt_translate error

Dear Team

This command is showing syntax error when running after coping to the python script file

onmt_translate -model march2020\nmt(brnn)\demo-model2_step_7991.pt -src march2020\nmt(brnn)\test.pun -output march2020\nmt(brnn)\testpred.eng -replace_unk -verbose

This is not python, onmt_translate is an executable to be run directly from your shell.