Skip to content

Commit b34bc64

Browse files
author
Hamel Husain
authored
Update seq2seq_utils.py
corrected comments.
1 parent 8d1cb31 commit b34bc64

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)