for (String datum : data) {
for (String feat : makeFeatures(datum)) {
c.incrementCount(feat);
}
}
threshedFeatures = c.keysAbove(thresh);
System.err.println((c.size() - threshedFeatures.size()) + " word features removed due to thresholding.");
}
public Collection<String> makeFeatures(String word) {
List<String> features = new ArrayList<String>();