public class BrillTagger extends java.lang.Object implements PartOfSpeechTagger
| Constructor and Description |
|---|
BrillTagger()
Create a new instance of a Brill Tagger.
|
BrillTagger(java.lang.String model)
Create a new instance of a Brill Tagger using the specified model path.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PartOfSpeechTag> |
parseSentence(java.lang.String sentence)
Parse the sentence and determine its part-of-speech tags
|
void |
setModel(java.lang.String model)
Set the model for this tagger.
|
public BrillTagger()
public BrillTagger(java.lang.String model)
model - the model, or directory path with file namespublic java.util.List<PartOfSpeechTag> parseSentence(java.lang.String sentence)
parseSentence in interface PartOfSpeechTaggersentence - the sentence to parsepublic void setModel(java.lang.String model)
setModel in interface PartOfSpeechTaggermodel - the model, or directory path with file names