Tag Archives: MT

Please note that the module “sacrableu” has no “compute blue” attribute

Recently, I encountered the following errors when installing fairseq running experiment in machine translation related tasks:

AttributeError: module 'sacrebleu' has no attribute 'compute_bleu'

After consulting, it is a problem with sacrableu version 2.0. Only the following operations are required:

pip uninstall sacrebleu
pip install sacrebleu==1.5.1

Problem solved!