From 102243ac63d40ab004dc55cd758706dd144b5d14 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 13 Jun 2012 14:52:23 +0200 Subject: max pairs arg --- dtrain/score.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dtrain/score.cc') diff --git a/dtrain/score.cc b/dtrain/score.cc index 5c356c0f..5bb0bcaa 100644 --- a/dtrain/score.cc +++ b/dtrain/score.cc @@ -128,6 +128,7 @@ SmoothSingleBleuScorer::Score(vector& hyp, vector& ref, return brevity_penalty(hyp_len, ref_len) * sum; } +// TODO single variants! /* * approx. bleu @@ -136,7 +137,8 @@ SmoothSingleBleuScorer::Score(vector& hyp, vector& ref, * and Structural Translation Features" * (Chiang et al. '08) * - * NOTE: needs some more code in dtrain.cc + * NOTE: Needs some more code in dtrain.cc . + * No scaling by src len. */ score_t ApproxBleuScorer::Score(vector& hyp, vector& ref, @@ -158,7 +160,7 @@ ApproxBleuScorer::Score(vector& hyp, vector& ref, glob_ref_len_ = discount_ * (glob_ref_len_ + ref_len); glob_src_len_ = discount_ * (glob_src_len_ + src_len); } - return (score_t)glob_src_len_ * score; + return score; } /* -- cgit v1.2.3