use of zemberek.morphology.lexicon.tr.StemNodeGenerator in project zemberek-nlp by ahmetaa.
the class StemNodeGeneratorTest method empty.
@Test
public void empty() {
StemNodeGenerator generator = new StemNodeGenerator(suffixes);
DictionaryItem kitap = getDictionaryItem("kitap");
StemNode[] nodes = generator.generate(kitap);
Assert.assertEquals(2, nodes.length);
DictionaryItem odun = getDictionaryItem("odun");
StemNode[] odunNodes = generator.generate(odun);
Assert.assertEquals(1, odunNodes.length);
}
Aggregations