From c98c811f01718f903e013ee483828a0f3f155b07 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 4 Aug 2017 12:49:45 +0200 Subject: python/psb.py: fix --- python/psb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/psb.py b/python/psb.py index 2d575fa..9d963f1 100644 --- a/python/psb.py +++ b/python/psb.py @@ -4,6 +4,6 @@ smoothing = SmoothingFunction() hypothesis = open('in').read().strip() reference = open('ref').read().strip() -score = nltk.translate.bleu_score.sentence_bleu([reference], hypothesis, smoothing_function=smoothing.method0) +score = nltk.translate.bleu_score.sentence_bleu([reference.split()], hypothesis.split(), smoothing_function=smoothing.method2) print("%f"%(score*100)) -- cgit v1.2.3