assertTrue(counts.count("the") > 300);
}
@Test
public void distinctVocabularies() {
TermGenerator x1 = new TermGenerator(WORDS, 1, 0.8);
final Multiset<String> k1 = HashMultiset.create();
for (int i = 0; i < 50000; i++) {
k1.add(x1.sample());
}
TermGenerator x2 = new TermGenerator(WORDS, 1, 0.8);
final Multiset<String> k2 = HashMultiset.create();
for (int i = 0; i < 50000; i++) {
k2.add(x2.sample());
}
final NormalDistribution normal = new NormalDistribution();
List<Double> scores = Ordering.natural().sortedCopy(Iterables.transform(k1.elementSet(),
new Function<String, Double>() {