public class MorfologikLemmatizer extends Object implements Lemmatizer
| Constructor and Description |
|---|
MorfologikLemmatizer(URL dictURL)
Reads a dictionary in morfologik FSA format.
|
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String word,
String postag)
Looks-up the lemma in a dictionary.
|
String[] |
lemmatize(String[] tokens,
String[] postags)
Generates lemma tags for the word and postag returning the result in an array.
|
public MorfologikLemmatizer(URL dictURL) throws IOException
dictURL - the URL containing the dictionary
the languageIllegalArgumentException - if an exception is illegalIOException - throws an exception if dictionary path is not correctpublic String[] lemmatize(String[] tokens, String[] postags)
Lemmatizerlemmatize in interface Lemmatizertokens - an array of the tokenspostags - an array of the pos tagsCopyright © 2016 IXA pipes. All rights reserved.