Package opennlp.tools.lemmatizer
Interface Lemmatizer
-
- All Known Implementing Classes:
DictionaryLemmatizer
,LemmatizerME
public interface Lemmatizer
The interface for lemmatizers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]
lemmatize(String[] toks, String[] tags)
Generates lemmas for the word and postag returning the result in an array.List<List<String>>
lemmatize(List<String> toks, List<String> tags)
Generates a lemma tags for the word and postag returning the result in a list of every possible lemma for each token and postag.
-
-
-
Method Detail
-
lemmatize
String[] lemmatize(String[] toks, String[] tags)
Generates lemmas for the word and postag returning the result in an array.- Parameters:
toks
- an array of the tokenstags
- an array of the pos tags- Returns:
- an array of possible lemmas for each token in the sequence.
-
lemmatize
List<List<String>> lemmatize(List<String> toks, List<String> tags)
Generates a lemma tags for the word and postag returning the result in a list of every possible lemma for each token 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 sequence.
-
-