Thanks to visit codestin.com
Credit goes to github.com

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

Commit 8f040a4

Browse files
committed
emulate_multibleu was removed in NLTK nltk/nltk@764dc8f#diff-de624b4549ea37f3f8480d6734bd475b
Signed-off-by: Cliff Woolley <[email protected]>
1 parent a81babd commit 8f040a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

open_seq2seq/models/text2text.py

Lines changed: 1 addition & 1 deletion
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)