|
|||||||||
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()
Creates a default context generator for tokenizer. |
|
DefaultTokenContextGenerator(Set<String> inducedAbbreviations)
Creates a default context generator for tokenizer. |
Method Summary | |
---|---|
String[] |
getContext(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()
public DefaultTokenContextGenerator(Set<String> inducedAbbreviations)
inducedAbbreviations
- the induced abbreviationsMethod Detail |
---|
public String[] getContext(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 |