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

Commit

Permalink
emulate_multibleu was removed in NLTK nltk/nltk@764dc8f#diff-de624b45…
Browse files Browse the repository at this point in the history
…49ea37f3f8480d6734bd475b

Signed-off-by: Cliff Woolley <jwoolley@nvidia.com>
  • Loading branch information
cliffwoolley committed May 4, 2020
1 parent a81babd commit 8f040a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open_seq2seq/models/text2text.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def calculate_bleu(preds, targets):
float32: BLEU score
"""
bleu_score = nltk.translate.bleu_score.corpus_bleu(
targets, preds, emulate_multibleu=True,
targets, preds,
)
return bleu_score

Expand Down

0 comments on commit 8f040a4

Please sign in to comment.