Skip to content

Commit

Permalink
compute bleu scores
Browse files Browse the repository at this point in the history
  • Loading branch information
yunjey committed Nov 12, 2016
1 parent f1b0674 commit 74d2ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/bleu.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def score(ref, hypo):


def evaluate(data_path='./data', split='val', get_scores=False):
reference_path = os.path.join(data_path, "%s/%s.reference.captions.pkl" %(split, split))
reference_path = os.path.join(data_path, "%s/%s.references.pkl" %(split, split))
candidate_path = os.path.join(data_path, "%s/%s.candidate.captions.pkl" %(split, split))

# load caption data
Expand Down

0 comments on commit 74d2ad9

Please sign in to comment.