tdm.putDocument("m1", new Terms("Lorem ipsum dolor."));
tdm.putDocument("m2", new Terms("Lorem ipsum dolor."));
tdm.putDocument("m3", new Terms("Lorem ipsum dolor."));
LatentSemanticIndex lsi = tdm.rejectAndWeight().createIndex();
assertEquals(3, lsi.documentCount());
assertEquals(3, lsi.rankDocumentsByQuery("Lorem").size());
}
@Test
public void corpusWithoutDocuments() {
TermDocumentMatrix tdm = new TermDocumentMatrix();