public class StatisticalTagger extends Object
| Constructor and Description |
|---|
StatisticalTagger(Properties props)
Construct a morphotagger.
|
StatisticalTagger(Properties props,
MorphoFactory aMorphoFactory)
Construct a morphotagger with
MorphoFactory. |
| Modifier and Type | Method and Description |
|---|---|
List<Morpheme> |
getMorphemes(String[] tokens)
Get morphological analysis from a tokenized sentence.
|
List<Morpheme> |
getMorphemesFromStrings(List<String> posTags,
String[] tokens)
Create
Morpheme objects from the output of posAnnotate. |
List<String> |
posAnnotate(String[] tokens)
Produce postags from a tokenized sentence.
|
public StatisticalTagger(Properties props)
props - the properties objectpublic StatisticalTagger(Properties props, MorphoFactory aMorphoFactory)
MorphoFactory.props - the properties objectaMorphoFactory - the morpho factorypublic final List<Morpheme> getMorphemes(String[] tokens)
tokens - the tokenized sentenceMorpheme objects containing morphological infopublic final List<String> posAnnotate(String[] tokens)
tokens - the sentenceCopyright © 2016 IXA pipes. All rights reserved.