use of org.ioperm.morphology.el.Lemma in project languagetool by languagetool-org.
the class GreekTagger method additionalTags.
@Override
protected List<AnalyzedToken> additionalTags(String word, WordTagger wordTagger) {
List<AnalyzedToken> tokens = new ArrayList<>();
List<Lemma> lemma = tagger.getLemma(word, false);
for (Lemma lm : lemma) {
AnalyzedToken tk = new AnalyzedToken(word, lm.getTag(), lm.getLemma());
tokens.add(tk);
}
return tokens;
}
Aggregations