diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-19 23:40:30 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-19 23:40:30 +0000 |
commit | 190ad8ae1e131ac0e29ff975b0d6502f3cc57af6 (patch) | |
tree | 7016b7671bfa385a1b3e4a8ab4c2a2544e5208df /vest/aer_scorer.cc | |
parent | 7d31056d098694b85847d9f75d3870913661e73b (diff) |
fixed oracle generate, detailed score info with --verbose
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@329 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest/aer_scorer.cc')
-rw-r--r-- | vest/aer_scorer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vest/aer_scorer.cc b/vest/aer_scorer.cc index 253076c5..81ffae76 100644 --- a/vest/aer_scorer.cc +++ b/vest/aer_scorer.cc @@ -18,9 +18,9 @@ class AERScore : public Score { virtual void PlusPartialEquals(const Score& rhs, int oracle_e_cover, int oracle_f_cover, int src_len){} virtual void PlusEquals(const Score& delta, const float scale) { const AERScore& other = static_cast<const AERScore&>(delta); - num_matches += other.num_matches; - num_predicted += other.num_predicted; - num_in_ref += other.num_in_ref; + num_matches += scale*other.num_matches; + num_predicted += scale*other.num_predicted; + num_in_ref += scale*other.num_in_ref; } virtual void PlusEquals(const Score& delta) { const AERScore& other = static_cast<const AERScore&>(delta); |