Fairseq: BLEU score from generate.py is cased BLEU or not?

Created on 1 Oct 2019  路  2Comments  路  Source: pytorch/fairseq

Hi,

Could anyone tell whether the BLEU score coming from the generate.py is cased BLEU or not?

And how could I output the translated sentence into a file?

Thanks!

Most helpful comment

Although fairseq uses sacrebleu, you should decode and output the translation into a file and use https://github.com/mjpost/sacreBLEU to be sure.

All 2 comments

  1. cased

  2. grep ^H output | cut -f3- > hyp

Although fairseq uses sacrebleu, you should decode and output the translation into a file and use https://github.com/mjpost/sacreBLEU to be sure.

Was this page helpful?
0 / 5 - 0 ratings