public class MorfologikLemmatizer extends Object implements opennlp.tools.lemmatizer.Lemmatizer
| Constructor and Description |
|---|
MorfologikLemmatizer(Path dictionaryPath) |
| Modifier and Type | Method and Description |
|---|---|
List<List<String>> |
lemmatize(List<String> toks,
List<String> tags)
Generates a lemma tags for the word and postag returning the result in list of possible lemmas.
|
String[] |
lemmatize(String[] toks,
String[] tags) |
public MorfologikLemmatizer(Path dictionaryPath) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionpublic String[] lemmatize(String[] toks, String[] tags)
lemmatize in interface opennlp.tools.lemmatizer.Lemmatizerpublic List<List<String>> lemmatize(List<String> toks, List<String> tags)
toks - an array of the tokenstags - an array of the pos tagsCopyright © 2017 The Apache Software Foundation. All rights reserved.