summaryrefslogtreecommitdiff
path: root/gi
diff options
context:
space:
mode:
authorphilblunsom@gmail.com <philblunsom@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-06-30 01:50:59 +0000
committerphilblunsom@gmail.com <philblunsom@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-06-30 01:50:59 +0000
commit640ff73013ca6b242f77a8ed365610146b9cb36d (patch)
tree14f0fb87efa714e3ebb6f1981db33138b50709b9 /gi
parent7390212db70aa86e55210cc621a06b91626d635a (diff)
Added singleton filter.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@73 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi')
-rw-r--r--gi/pyp-topics/src/contexts_corpus.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pyp-topics/src/contexts_corpus.cc b/gi/pyp-topics/src/contexts_corpus.cc
index ad9554f5..c09188af 100644
--- a/gi/pyp-topics/src/contexts_corpus.cc
+++ b/gi/pyp-topics/src/contexts_corpus.cc
@@ -35,7 +35,7 @@ void read_callback(const ContextsLexer::PhraseContextsType& new_contexts, void*
// filter out singleton contexts
if (!counts->empty()) {
map<string,int>::const_iterator find_it = counts->find(context_str);
- if (find_it == counts->end() || find_it->second < 5)
+ if (find_it == counts->end() || find_it->second < 1)
continue;
}