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 | 822da237c6ffd137afa9efa03f49fa50de36773f (patch) | |
tree | 476e89fc906fc769a4ef9440453d82384f1f2e50 | |
parent | 6543cc83cc9276aa229346379b65ec11861541ff (diff) |
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@111 ec762483-ff6d-05da-a07a-a48fb63a330f
-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; } |