summaryrefslogtreecommitdiff
path: root/extools
diff options
context:
space:
mode:
authortrevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-26 19:09:23 +0000
committertrevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-26 19:09:23 +0000
commit53a8a8f1b78be3732a372276135f763d57b72847 (patch)
tree3ac8dcd0d97a17ca1a765ab8c27de3e42d0f87de /extools
parent18937ade50a25db677f10c8250c8815d539d0bb5 (diff)
Fixed bug in mr_strip_rule_reducer regarding lines with duplicate contexts (were overwritten)
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@424 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'extools')
-rw-r--r--extools/sg_lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/extools/sg_lexer.l b/extools/sg_lexer.l
index f82e8135..9051ba51 100644
--- a/extools/sg_lexer.l
+++ b/extools/sg_lexer.l
@@ -241,7 +241,7 @@ ALIGN [0-9]+-[0-9]+
}
<FEATVAL>{REAL} {
// std::cerr << "Feature val input: " << yytext << std::endl;
- cur_stats->counts.set_value(sglex_cur_fid, strtod(yytext, NULL));
+ cur_stats->counts[sglex_cur_fid] += strtod(yytext, NULL);
BEGIN(FEATS);
}
<FEATVAL>. {