public class MorfologikLemmatizer extends Object implements opennlp.tools.lemmatizer.Lemmatizer
Constructor and Description |
---|
MorfologikLemmatizer(morfologik.stemming.Dictionary dictionary) |
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
IllegalArgumentException
IOException
public MorfologikLemmatizer(morfologik.stemming.Dictionary dictionary) throws IllegalArgumentException, IOException
IllegalArgumentException
IOException
public String[] lemmatize(String[] toks, String[] tags)
lemmatize
in interface opennlp.tools.lemmatizer.Lemmatizer
public List<List<String>> lemmatize(List<String> toks, List<String> tags)
lemmatize
in interface opennlp.tools.lemmatizer.Lemmatizer
toks
- an array of the tokenstags
- an array of the pos tagsCopyright © 2021 The Apache Software Foundation. All rights reserved.