From 9986bc8fe11435b2134350bba24aa0139d2665ac Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Fri, 22 Apr 2011 13:38:32 -0400 Subject: make compatible with FastSparseVector --- 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 d60bd0fc..c85cdea7 100644 --- a/extools/sg_lexer.l +++ b/extools/sg_lexer.l @@ -240,7 +240,7 @@ ALIGN [0-9]+-[0-9]+ } {REAL} { // std::cerr << "Feature val input: " << yytext << std::endl; - cur_stats->counts[sglex_cur_fid] += strtod(yytext, NULL); + cur_stats->counts.add_value(sglex_cur_fid, strtod(yytext, NULL)); BEGIN(FEATS); } . { -- cgit v1.2.3