Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unkpen does not work #5535

Open
LiYixuan727 opened this issue Aug 13, 2024 · 0 comments
Open

unkpen does not work #5535

LiYixuan727 opened this issue Aug 13, 2024 · 0 comments

Comments

@LiYixuan727
Copy link

Hi,

When running generate, the flag --unkpen does not affect the result.

Here's my code:

  • training
    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
  • generate
    cat ./europat/test.es | fairseq-interactive data-bin/my_dataset --path checkpoints/checkpoint_best.pt --remove-bpe --unkpen 10 > results_new.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant