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_SCORE weird behaviour #2224

Open
qlemesle opened this issue Jan 25, 2024 · 0 comments
Open

BLEU_SCORE weird behaviour #2224

qlemesle opened this issue Jan 25, 2024 · 0 comments

Comments

@qlemesle
Copy link

qlemesle commented Jan 25, 2024

❓ Questions and Help

Is it normal that with standard bleu settings if an n_gram isn't in references then the score returned is 0 ?

With default settings (4 n_grams and weights = [0.025] *4)
The candidate : ['Le', 'petit', 'chat', 'moche']
For the reference : ['Le', 'petit', 'chat', 'mignon']
Get a bleu score of 0.

Due to this line in the code :
if min(clipped_counts) == 0:
return 0.0

Is this behaviour normal ?

@qlemesle qlemesle changed the title BLEU_SCORE weird behavior BLEU_SCORE weird behaviour Jan 25, 2024
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

No branches or pull requests

1 participant