public class Tagger
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Tagger.TaggedToken
One token and its tag.
|
| Modifier and Type | Field and Description |
|---|---|
FeatureExtractor |
featureExtractor |
Model |
model |
| Constructor and Description |
|---|
Tagger() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadModel(java.lang.String modelFilename)
Loads a model from a file.
|
static void |
main(java.lang.String[] args)
Illustrate how to load and call the POS tagger.
|
java.util.List<Tagger.TaggedToken> |
tokenizeAndTag(java.lang.String text)
Run the tokenizer and tagger on one tweet's text.
|
public Model model
public FeatureExtractor featureExtractor
public void loadModel(java.lang.String modelFilename)
throws java.io.IOException
modelFilename - java.io.IOExceptionpublic java.util.List<Tagger.TaggedToken> tokenizeAndTag(java.lang.String text)
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException