Problem in


(sondos) #1

after train at step 3: translate>>
python -model -src data/src-test.txt -output pred.txt -replace_unk -verbose

it keeps telling me this error >>

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

what does that mean and what should i do ???

(Guillaume Klein) #2

The file is given for example. You need to replace it with the model you trained.

(sondos) #3

such as “”

(sondos) #4

didn’t work … what should i do?

(Guillaume Klein) #5

Did you run a training?

If so, it produced a model file for each epoch. Just use the last file.

(sondos) #6

yes, i did

where can i find these files so i can get their file name

(Guillaume Klein) #7

Typing ls in the current directory?

(sondos) #8
data docs mkdocs.yml onmt pred.txt test tools

(sondos) #9

there is sth wrong ?!!right

(Guillaume Klein) #10

There is nothing wrong.

  • For a quick test, just use the last generated model (you can type ls -lt to list files by date).
  • More generally, you want to take the model where the value after “ppl_” is the lowest.

(sondos) #11

thank you so much

it was helpful