Skip to content

Commit 3bc26a1

Browse files
author
Hamel Husain
authored
Merge pull request #4 from hamelsmu/hamelsmu-patch-1
Update seq2seq_utils.py
2 parents 2ebfb1c + b34bc64 commit 3bc26a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/seq2seq_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def evaluate_model(self, holdout_bodies, holdout_titles):
423423
logging.warning('Calculating BLEU.')
424424

425425
#must be careful with nltk api for corpus_bleu!,
426-
# expects List[List[List[str]]] for ground truth, if you forget you will get
427-
# errenous results!
426+
# expects List[List[List[str]]] for ground truth, using List[List[str]] will give you
427+
# erroneous results.
428428
bleu = corpus_bleu([[a] for a in actual], predicted)
429429
return bleu

0 commit comments

Comments
 (0)