OpenNMT Forum

Error while translating

I get this error while translating:

IOError: [Errno 2] No such file or directory: ‘’

The command i used for translating is:
python -model -src data/test.txt -replace_unk -verbose
Below is my opennmt directory where i have the models after training.

Hi @ngdave
try to run

python3 build
python3 install 

and then your translation command

I believe your checkpoints are named kst-model_step_<num_step>.pt, not what you’re passing to the -model arg.

thanks, problem solved.