How to calculate BLEU by OpenNMT-py?

in py-version。
anyone konws?

Just fetch and use multi-bleu.perl:

wget https://raw.githubusercontent.com/moses-smt/mosesdecoder/master/scripts/generic/multi-bleu.perl
perl multi-bleu.perl reference < hypothesis
1 Like