sondos
(sondos)
1
after train at step 3: translate>>
python translate.py -model demo-model_epochX_PPL.pt -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: ‘demo-model_epochX_PPL.pt’
what does that mean and what should i do ???
The file demo-model_epochX_PPL.pt
is given for example. You need to replace it with the model you trained.
1 Like
sondos
(sondos)
3
such as “demo-model_epoch13_PPL.pt”
sondos
(sondos)
4
didn’t work … what should i do?
Did you run a training?
If so, it produced a model file for each epoch. Just use the last file.
1 Like
sondos
(sondos)
6
yes, i did
where can i find these files so i can get their file name
Typing ls
in the current directory?
1 Like
sondos
(sondos)
8
CONTRIBUTORS.md demo-model_acc_3.70_ppl_526.78_e6.pt demo-model_acc_6.41_ppl_448.74_e13.pt
data demo-model_acc_3.87_ppl_1567.64_e2.pt demo-model_acc_6.41_ppl_448.77_e12.pt
demo-model_acc_0.49_ppl_4966.85_e1.pt demo-model_acc_4.14_ppl_1863.15_e5.pt demo-model_acc_6.41_ppl_449.54_e9.pt
demo-model_acc_1.01_ppl_1268.06_e2.pt demo-model_acc_4.63_ppl_693.03_e8.pt demo-model_acc_6.42_ppl_448.84_e11.pt
demo-model_acc_10.57_ppl_1370.97_e3.pt demo-model_acc_4.67_ppl_1587.97_e3.pt demo-model_acc_6.43_ppl_476.70_e5.pt
demo-model_acc_12.02_ppl_1116.40_e4.pt demo-model_acc_4.85_ppl_893.81_e4.pt demo-model_acc_6.45_ppl_448.98_e10.pt
demo-model_acc_12.64_ppl_952.92_e6.pt demo-model_acc_5.08_ppl_1925.62_e1.pt demo-model_acc_6.45_ppl_455.98_e13.pt
demo-model_acc_12.79_ppl_885.08_e7.pt demo-model_acc_5.41_ppl_487.20_e10.pt demo-model_acc_6.45_ppl_456.16_e11.pt
demo-model_acc_13.79_ppl_876.88_e8.pt demo-model_acc_5.46_ppl_171667637.04_e1.pt demo-model_acc_6.45_ppl_456.48_e10.pt
demo-model_acc_14.19_ppl_974.64_e5.pt demo-model_acc_5.48_ppl_7582.32_e1.pt demo-model_acc_6.48_ppl_456.04_e12.pt
demo-model_acc_1.49_ppl_5826.20_e2.pt demo-model_acc_5.57_ppl_4584.18_e4.pt demo-model_acc_6.49_ppl_456.63_e6.pt
demo-model_acc_15.41_ppl_821.27_e9.pt demo-model_acc_5.62_ppl_2522.70_e1.pt demo-model_acc_7.19_ppl_648.87_e6.pt
demo-model_acc_16.11_ppl_816.55_e10.pt demo-model_acc_5.77_ppl_601.28_e4.pt demo-model_acc_7.60_ppl_467.85_e8.pt
demo-model_acc_16.17_ppl_845.16_e12.pt demo-model_acc_5.89_ppl_500.76_e9.pt demo-model_acc_7.69_ppl_462.09_e10.pt
demo-model_acc_16.18_ppl_838.20_e11.pt demo-model_acc_5.91_ppl_479.67_e7.pt demo-model_acc_7.77_ppl_461.46_e13.pt
demo-model_acc_1.61_ppl_1248.68_e4.pt demo-model_acc_6.11_ppl_478.36_e11.pt demo-model_acc_7.77_ppl_461.71_e11.pt
demo-model_acc_16.25_ppl_851.74_e13.pt demo-model_acc_6.11_ppl_489.30_e5.pt demo-model_acc_7.77_ppl_462.92_e9.pt
demo-model_acc_2.10_ppl_4363.99_e3.pt demo-model_acc_6.20_ppl_462.49_e6.pt demo-model_acc_7.80_ppl_461.43_e12.pt
demo-model_acc_2.24_ppl_2200.42_e3.pt demo-model_acc_6.28_ppl_509.36_e8.pt demo-model_acc_9.44_ppl_2031.02_e2.pt
demo-model_acc_2.40_ppl_3798.38_e3.pt demo-model_acc_6.30_ppl_513.20_e7.pt demo-model_acc_9.78_ppl_3380.68_e1.pt
demo-model_acc_2.64_ppl_3135.79_e2.pt demo-model_acc_6.30_ppl_933.19_e3.pt docs
demo-model_acc_2.71_ppl_9884.17_e2.pt demo-model_acc_6.31_ppl_506.39_e9.pt LICENSE.md
demo-model_acc_2.72_ppl_584.69_e5.pt demo-model_acc_6.33_ppl_458.86_e8.pt mkdocs.yml
demo-model_acc_2.86_ppl_2874.63_e3.pt demo-model_acc_6.34_ppl_469.54_e7.pt onmt
demo-model_acc_2.95_ppl_554.49_e4.pt demo-model_acc_6.35_ppl_505.69_e10.pt pred.txt
demo-model_acc_2.96_ppl_13861.49_e1.pt demo-model_acc_6.37_ppl_471.30_e12.pt preprocess.py
demo-model_acc_2.96_ppl_1800.57_e4.pt demo-model_acc_6.37_ppl_505.46_e12.pt README.md
demo-model_acc_2.99_ppl_661.84_e7.pt demo-model_acc_6.37_ppl_505.47_e11.pt setup.py
demo-model_acc_3.10_ppl_630.05_e5.pt demo-model_acc_6.38_ppl_456.99_e9.pt test
demo-model_acc_3.24_ppl_764.66_e6.pt demo-model_acc_6.38_ppl_469.77_e13.pt tools
demo-model_acc_3.36_ppl_2085.93_e1.pt demo-model_acc_6.38_ppl_505.39_e13.pt train.py
demo-model_acc_3.39_ppl_3180.33_e2.pt demo-model_acc_6.39_ppl_450.07_e7.pt translate.py
demo-model_acc_3.55_ppl_920.52_e5.pt demo-model_acc_6.39_ppl_451.84_e8.pt
sondos
(sondos)
9
there is sth wrong ?!!right