From 53a8a8f1b78be3732a372276135f763d57b72847 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(-) (limited to 'extools/sg_lexer.l') 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