Open LiYixuan727 opened 3 months ago
Hi,
When running generate, the flag --unkpen does not affect the result.
Here's my code:
fairseq-train data-bin/my_dataset --arch transformer \ --max-epoch 10 \ --max-tokens 4096\ --optimizer adam --lr-scheduler inverse_sqrt --lr 0.0007 \ --criterion label_smoothed_cross_entropy --label-smoothing 0.1 \ --no-progress-bar --save-dir checkpoints
cat ./europat/test.es | fairseq-interactive data-bin/my_dataset --path checkpoints/checkpoint_best.pt --remove-bpe --unkpen 10 > results_new.txt
Hi,
When running generate, the flag --unkpen does not affect the result.
Here's my code:
fairseq-train data-bin/my_dataset --arch transformer \ --max-epoch 10 \ --max-tokens 4096\ --optimizer adam --lr-scheduler inverse_sqrt --lr 0.0007 \ --criterion label_smoothed_cross_entropy --label-smoothing 0.1 \ --no-progress-bar --save-dir checkpoints
cat ./europat/test.es | fairseq-interactive data-bin/my_dataset --path checkpoints/checkpoint_best.pt --remove-bpe --unkpen 10 > results_new.txt