diff options
author | philblunsom@gmail.com <philblunsom@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-02 15:17:49 +0000 |
---|---|---|
committer | philblunsom@gmail.com <philblunsom@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-02 15:17:49 +0000 |
commit | d8fbd50153111e93d2a9870b86034e667067978c (patch) | |
tree | 1b120e215492301ecddb5cb303a9da26f0d763c6 /gi/pyp-topics | |
parent | 3b6381fd9859a710d0182fffb40ce312a56a3eee (diff) |
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@111 ec762483-ff6d-05da-a07a-a48fb63a330f
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; } |