public final class LingPipePosTagger extends AbstractPosTagger
POS tagger based on LingPipe.
here for models.| Constructor and Description |
|---|
LingPipePosTagger(File modelFile)
Creates a new completely initalized LingPipe PoS tagger from the given model using the provided
TagFilter
. |
LingPipePosTagger(InputStream modelStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate(String folderPath,
String modelFilePath) |
String |
getName() |
protected List<String> |
getTags(List<String> tokens) |
protected TextTokenizer |
getTokenizer() |
static void |
main(String[] args) |
getAnnotations, getTaggedString, normalizeTagpublic LingPipePosTagger(File modelFile)
Creates a new completely initalized LingPipe PoS tagger from the given model using the provided TagFilter
.
modelFile - The model used by the LingPipe POS tagger.public LingPipePosTagger(InputStream modelStream)
protected List<String> getTags(List<String> tokens)
getTags in class AbstractPosTaggerpublic String getName()
getName in class AbstractPosTaggerprotected TextTokenizer getTokenizer()
getTokenizer in class AbstractPosTaggerpublic static void main(String[] args)
Copyright © 2018. All rights reserved.