OpenNMT

Version 2.2 Perl MultiBleu Script

Hi,

I’m using this line of code to try and get the BLEU score of some predictions I made, using version 2.2:

perl OpenNMT-tf/third_party/multi-bleu.perl toy-ende/ref.txt < toy-ende/pred.txt

This worked previously for me when I was using the old version, but no longer works for me on the new version. I get an error saying:

’ Can’t open perl script “OpenNMT-tf/third_party/multi-bleu.perl”: No such file or directory’

What can I do to get it to work?

Thanks

Hi,

It is now recommended to use SacreBLEU:

Thanks, I’ll start using that. However, when I try a similar line of code which looks to source in a script:

‘!python OpenNMT-tf/third_party/apply_bpe.py -c’

I get a similar error:

‘python3: can’t open file ‘OpenNMT-tf/third_party/apply_bpe.py’: [Errno 2] No such file or directory’

Is there a way I can fix this?

thanks

This third_party directory no longer exists. You can find apply_bpe.py in its original repository: