summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-06-23 17:11:00 +0200
committerPatrick Simianer <p@simianer.de>2015-06-23 17:11:00 +0200
commitf9cac877cd3fd1af5d28c0368c8f3ec7d19da103 (patch)
treea0d5f2847b63b3ae0f16cf0d32df454577300ed7
parent308d6472f1fba1acbfb15895b3b5c3926a59d949 (diff)
vanilla per-sentence bleu
-rw-r--r--training/dtrain/score.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/training/dtrain/score.h b/training/dtrain/score.h
index 06dbc5a4..b0b73e94 100644
--- a/training/dtrain/score.h
+++ b/training/dtrain/score.h
@@ -189,7 +189,8 @@ struct PerSentenceBleuScorer
/ ((counts.sum_[i] + add)));
}
- return BrevityPenalty(hl, rl+1) * exp(sum);
+ //return BrevityPenalty(hl, rl+1) * exp(sum);
+ return BrevityPenalty(hl, rl) * exp(sum);
}
};