Skip to content
This repository was archived by the owner on Aug 3, 2021. It is now read-only.

Commit bada556

Browse files
committed
emulate_multibleu was removed in NLTK nltk/nltk@764dc8f#diff-de624b4549ea37f3f8480d6734bd475b
1 parent a81babd commit bada556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

open_seq2seq/models/text2text.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def calculate_bleu(preds, targets):
5050
float32: BLEU score
5151
"""
5252
bleu_score = nltk.translate.bleu_score.corpus_bleu(
53-
targets, preds, emulate_multibleu=True,
53+
targets, preds,
5454
)
5555
return bleu_score
5656

0 commit comments

Comments
 (0)