/* * 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; }