From dc66b5523f69775675e3f4dc75968e2ae4d300ba Mon Sep 17 00:00:00 2001 From: "trevor.cohn" Date: Mon, 26 Jul 2010 19:09:23 +0000 Subject: 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 --- extools/sg_lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]+ } {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); } . { -- cgit v1.2.3