|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opennlp.grok.preprocess.sentdetect.SDContextGenerator
Generate event contexts for maxent decisions for sentence detection.
Constructor Summary | |
SDContextGenerator()
Creates a new SDContextGenerator instance with
no induced abbreviations. |
|
SDContextGenerator(java.util.Set inducedAbbreviations)
Creates a new SDContextGenerator instance which uses
the set of induced abbreviations. |
Method Summary | |
java.lang.String[] |
getContext(java.lang.Object o)
Builds up the list of features, anchored around a position within the StringBuffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SDContextGenerator()
SDContextGenerator
instance with
no induced abbreviations.
public SDContextGenerator(java.util.Set inducedAbbreviations)
SDContextGenerator
instance which uses
the set of induced abbreviations.
inducedAbbreviations
- a Set
of Strings
representing induced abbreviations in the training data.
Example: "Mr."Method Detail |
public java.lang.String[] getContext(java.lang.Object o)
getContext
in interface opennlp.maxent.ContextGenerator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |