Skip to content

Conversation

@albertvillanova
Copy link
Member

@albertvillanova albertvillanova commented Aug 10, 2021

Last sacrebleu release (v2.0.0) has removed sacrebleu.TOKENIZERS: https://github.com/mjpost/sacrebleu/pull/152/files#diff-2553a315bb1f7e68c9c1b00d56eaeb74f5205aeb3a189bc3e527b122c6078795L17-R15

This PR makes a hot fix of the bug by using a private function in sacrebleu: sacrebleu.metrics.bleu._get_tokenizer().

Eventually, this should be further fixed in order to use only public functions.

This is a partial hotfix of #2781.

@albertvillanova albertvillanova merged commit 41d242c into huggingface:master Aug 10, 2021
@albertvillanova albertvillanova linked an issue Aug 10, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Latest v2.0.0 release of sacrebleu has broken some metrics

1 participant