summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/psb.py2
1 files changed, 1 insertions, 1 deletions
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))