|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opennlp.grok.preprocess.postag.POSTaggerME | +--opennlp.grok.preprocess.postag.EnglishPOSTaggerME
A part of speech tagger that uses a model trained on English data from the Wall Street Journal and the Brown corpus. The latest model created achieved >96% accuracy on unseen data.
Field Summary |
Fields inherited from class opennlp.grok.preprocess.postag.POSTaggerME |
_closedClassTagsFilter, _contextGen, _posModel, _useClosedClassTagsFilter |
Constructor Summary | |
EnglishPOSTaggerME()
No-arg constructor which loads the English POS tagging model transparently. |
Method Summary | |
static void |
main(java.lang.String[] args)
Part-of-speech tag a string passed in on the command line. |
Methods inherited from class opennlp.grok.preprocess.postag.POSTaggerME |
bestSequence, getEventCollector, getNegativeOutcome, localEval, process, requires, tag, tag, tag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnglishPOSTaggerME()
Method Detail |
public static void main(java.lang.String[] args) throws java.io.IOException
Part-of-speech tag a string passed in on the command line. For example:
java opennlp.grok.preprocess.postag.EnglishPOSTaggerME -test "Mr. Smith gave a car to his son on Friday."
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |