|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.tokenize.DefaultTokenContextGenerator
public class DefaultTokenContextGenerator
Generate events for maxent decisions for tokenization.
Constructor Summary | |
---|---|
DefaultTokenContextGenerator()
|
Method Summary | |
---|---|
java.lang.String[] |
getContext(java.lang.String sentence,
int index)
Returns an array of features for the specified sentence string at the specified index. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTokenContextGenerator()
Method Detail |
---|
public java.lang.String[] getContext(java.lang.String sentence, int index)
TokenContextGenerator
getContext
in interface TokenContextGenerator
sentence
- The string for a sentence.index
- The index to consider splitting as a token.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |