From 822da237c6ffd137afa9efa03f49fa50de36773f Mon Sep 17 00:00:00 2001 From: "philblunsom@gmail.com" Date: Fri, 2 Jul 2010 15:17:49 +0000 Subject: git-svn-id: https://ws10smt.googlecode.com/svn/trunk@111 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/pyp-topics/src/train-contexts.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gi') 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::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 <