979899100101102103104105106107
(double) totalDocuments; } double weightedProbability(String word) { MutableInt i = features.get(word); return (i == null ? 0.1 : (i.doubleValue() / (double) numDocuments)); } public String toString() { StringBuilder sb = new StringBuilder();