Package opennlp.tools.lemmatizer
Interface Lemmatizer
- All Known Implementing Classes:
DictionaryLemmatizer
,LemmatizerME
public interface Lemmatizer
The common interface for lemmatizers.
-
Method Summary
-
Method Details
-
lemmatize
Generates lemmas for the word and postag.- Parameters:
toks
- An array of the tokenstags
- an array of the pos tags- Returns:
- An array of possible lemmas for each token in the
toks
sequence.
-
lemmatize
Generates lemma tags for the word and postag.- Parameters:
toks
- An array of the tokenstags
- An array of the pos tags- Returns:
- A list of every possible lemma for each token in the
toks
sequence.
-