Skip to content

Commit

Permalink
Merge pull request #12 from pltrdy/revert-10-revert-8-hane1818-patch-1
Browse files Browse the repository at this point in the history
Revert "Revert "Fix error to fit python2""
  • Loading branch information
pltrdy authored Mar 26, 2018
2 parents 40b77b0 + 1a2218f commit 91529df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rouge/rouge.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self, metrics=None, stats=None):
raise ValueError("Unknown stat '%s'" % s)

def get_scores(self, hyps, refs, avg=False):
if isinstance(hyps, string_types):
if isinstance(hyps, six.string_types):
hyps, refs = [hyps], [refs]

assert(type(hyps) == type(refs))
Expand Down

0 comments on commit 91529df

Please sign in to comment.