Skip to content

Commit

Permalink
oo api: update function names in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kracwarlock committed Mar 7, 2018
1 parent f67414b commit 91b8245
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def test_oo_api():

nlge = NLGEval()

res = nlge.evaluate_single([ref1[0]] + [ref2[0]], hyp[0])
res = nlge.evaluate_single([ref1[1]] + [ref2[1]], hyp[1])
res = nlge.compute_individual_metrics([ref1[0]] + [ref2[0]], hyp[0])
res = nlge.compute_individual_metrics([ref1[1]] + [ref2[1]], hyp[1])

hyp_list = hyp
ref_list = [ref1, ref2]
res = nlge.evaluate_corpus(ref_list, hyp_list)
res = nlge.compute_metrics(ref_list, hyp_list)

0 comments on commit 91b8245

Please sign in to comment.