Unverified Commit 1ff3efce authored by Joost Bastings's avatar Joost Bastings Committed by GitHub
Browse files

Ratio should be predlen/reflen not reflen/predlen

To be compatible with multi-bleu.
This seems to only affect the result_string.
parent ee36a6f3
......@@ -102,5 +102,5 @@ class Scorer(object):
fmt += ' (BP={:.3f}, ratio={:.3f}, syslen={}, reflen={})'
bleup = [p * 100 for p in self.precision()[:order]]
return fmt.format(order, self.score(order=order), *bleup,
self.brevity(), self.stat.reflen/self.stat.predlen,
self.brevity(), self.stat.predlen/self.stat.reflen,
self.stat.predlen, self.stat.reflen)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment