public class StatisticalLemmatizer extends Object
| Constructor and Description |
|---|
StatisticalLemmatizer(Properties props)
Construct a statistical lemmatizer.
|
StatisticalLemmatizer(Properties props,
MorphoFactory aMorphoFactory)
Construct a statistical lemmatizer with
MorphoFactory. |
| Modifier and Type | Method and Description |
|---|---|
List<Morpheme> |
getMorphemes(String[] tokens,
String[] posTags)
Get lemmas from a tokenized and pos tagged sentence.
|
List<Morpheme> |
getMorphemesFromStrings(String[] tokens,
String[] posTags,
List<String> lemmas)
Create
Morpheme objects from the output of posAnnotate. |
List<String> |
lemmatize(String[] tokens,
String[] posTags)
Produce lemmas from a tokenized sentence and its postags.
|
public StatisticalLemmatizer(Properties props)
props - the properties objectpublic StatisticalLemmatizer(Properties props, MorphoFactory aMorphoFactory)
MorphoFactory.props - the properties objectaMorphoFactory - the morpho factorypublic final List<Morpheme> getMorphemes(String[] tokens, String[] posTags)
tokens - the tokenized sentenceposTags - the pos tags of the sentenceMorpheme objects containing morphological infopublic List<String> lemmatize(String[] tokens, String[] posTags)
tokens - the tokensposTags - the pos tagsCopyright © 2016 IXA pipes. All rights reserved.