From f9cac877cd3fd1af5d28c0368c8f3ec7d19da103 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Tue, 23 Jun 2015 17:11:00 +0200 Subject: vanilla per-sentence bleu --- training/dtrain/score.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'training/dtrain') 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); } }; -- cgit v1.2.3