summaryrefslogtreecommitdiff
path: root/extools/sg_lexer.l
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
commitdc66b5523f69775675e3f4dc75968e2ae4d300ba (patch)
tree61623d297489fd90b704cdbb9a8b7eea85ef1073 /extools/sg_lexer.l
parent4806bfa68c9014765adc78a9472705b965229e17 (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/sg_lexer.l')
-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>. {