Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLEU metric calculates wrong results for single hypothesis single reference pairs. #72

Closed
Sophylax opened this issue Feb 10, 2022 · 0 comments · Fixed by #74
Closed

Comments

@Sophylax
Copy link
Member

If you give the BLEU metric hypothesis/reference pairs that consist of a single hypothesis and a single reference, the results don't make sense. If you duplicate either or both of the elements, then it calucaltes the expected results.

Reproduction code can be found in the following gist:
https://gist.github.com/Sophylax/2f70729a8ecb669c98898c65f7aed679

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 a pull request may close this issue.

1 participant