コード例 #1
0
ファイル: JaccardScorer.java プロジェクト: lyhong508/DStc
 /*
  * Gets common words between the sets in two files
  */
 public int getCommonWords(JaccardScorer js) {
   int count = 0;
   for (String s : js.getWordsSet()) {
     if (words.contains(s)) count++;
   }
   return count;
 }