Skip to content

Commit

Permalink
Fixed expected value for BLEU score doctest after changes from #2572
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaarsen committed Nov 20, 2021
1 parent 3c2a5a6 commit 6dcfa80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nltk/translate/bleu_score.py
Expand Up @@ -510,7 +510,7 @@ def __init__(self, epsilon=0.1, alpha=5, k=5):
>>> print(sentence_bleu([reference1], hypothesis1, smoothing_function=chencherry.method1)) # doctest: +ELLIPSIS
0.4118...
>>> print(sentence_bleu([reference1], hypothesis1, smoothing_function=chencherry.method2)) # doctest: +ELLIPSIS
0.4489...
0.4452...
>>> print(sentence_bleu([reference1], hypothesis1, smoothing_function=chencherry.method3)) # doctest: +ELLIPSIS
0.4118...
>>> print(sentence_bleu([reference1], hypothesis1, smoothing_function=chencherry.method4)) # doctest: +ELLIPSIS
Expand Down

0 comments on commit 6dcfa80

Please sign in to comment.