コード例 #1
0
 @Override
 public void incrementCount(String word, double by) {
   wordFrequencies.incrementCount(word, by);
   if (wordFrequencies.getCount(word) >= minWordFrequency && vocabWords.indexOf(word) < 0)
     vocabWords.add(word);
 }
コード例 #2
0
 @Override
 public void incrementDocCount(String word, double by) {
   docFrequencies.incrementCount(word, by);
 }