Undo change in requirements for counting as a high tf-idf word

This commit is contained in:
Viktor Lofgren 2023-06-19 17:49:58 +02:00 committed by Viktor
parent f0b4acb358
commit 32a6735d03

View File

@ -40,7 +40,7 @@ public class WordsTfIdfCounts implements WordReps, Comparator<WordRep> {
int value = getTermValue(key, cnt, maxVal); int value = getTermValue(key, cnt, maxVal);
tfIdf.put(key, value); tfIdf.put(key, value);
if (cnt > 2 && value > 100) { if (cnt > 1 && value > 100) {
highTfIdfInstances.add(key); highTfIdfInstances.add(key);
} }
}); });