diff options
Diffstat (limited to 'gi/pyp-topics')
-rw-r--r-- | gi/pyp-topics/src/train-contexts.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gi/pyp-topics/src/train-contexts.cc b/gi/pyp-topics/src/train-contexts.cc index 110fb9d5..618c6dbb 100644 --- a/gi/pyp-topics/src/train-contexts.cc +++ b/gi/pyp-topics/src/train-contexts.cc @@ -116,7 +116,9 @@ int main(int argc, char **argv) // increment this terms frequency pair<map<int,int>::iterator,bool> insert_result = all_terms.insert(make_pair(*termIt,1)); - if (!insert_result.second) insert_result.first++; + if (!insert_result.second) + //insert_result.first++; + all_terms[*termIt] += 1; } documents_out <<endl; } |