summaryrefslogtreecommitdiff
path: root/extools/sg_lexer.l
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-04-22 13:38:32 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2011-04-22 13:38:32 -0400
commit9d393298ce21159907884ea9b7318c52585409ee (patch)
treecab034a01642abb2a067818f9c8f29999c4c6797 /extools/sg_lexer.l
parentb6634dff2cd515d9e6f95416512db893a08bde29 (diff)
make compatible with FastSparseVector
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 d60bd0fc..c85cdea7 100644
--- a/extools/sg_lexer.l
+++ b/extools/sg_lexer.l
@@ -240,7 +240,7 @@ ALIGN [0-9]+-[0-9]+
}
<FEATVAL>{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);
}
<FEATVAL>. {