summaryrefslogtreecommitdiff
path: root/vest/scorer.cc
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-19 03:59:31 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-19 03:59:31 +0000
commitaef15981e94fab6c694a5b3059632a762647d1fc (patch)
tree5538d2c41f147d8028ce40f2458e288a7c69e9ac /vest/scorer.cc
parent328dd105566278e6a8dff0ecafb91dab7e69799d (diff)
vest generate --verbose
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@315 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest/scorer.cc')
-rw-r--r--vest/scorer.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/vest/scorer.cc b/vest/scorer.cc
index 30015bb2..e8e9608a 100644
--- a/vest/scorer.cc
+++ b/vest/scorer.cc
@@ -96,9 +96,9 @@ class SERScore : public Score {
}
void PlusPartialEquals(const Score& /* delta */, int /* oracle_e_cover */, int /* oracle_f_cover */, int /* src_len */){}
- void PlusEquals(const Score& delta, const float /* scale */) {
- correct += static_cast<const SERScore&>(delta).correct;
- total += static_cast<const SERScore&>(delta).total;
+ void PlusEquals(const Score& delta, const float scale) {
+ correct += scale*static_cast<const SERScore&>(delta).correct;
+ total += scale*static_cast<const SERScore&>(delta).total;
}
void PlusEquals(const Score& delta) {
correct += static_cast<const SERScore&>(delta).correct;
@@ -538,7 +538,6 @@ void BLEUScore::PlusEquals(const Score& delta, const float scale) {
hyp_ngram_counts = ( hyp_ngram_counts + d.hyp_ngram_counts) * scale;
ref_len = (ref_len + d.ref_len) * scale;
hyp_len = ( hyp_len + d.hyp_len) * scale;
-
}
void BLEUScore::PlusPartialEquals(const Score& delta, int oracle_e_cover, int oracle_f_cover, int src_len){