public class DefaultTokenContextGenerator extends java.lang.Object implements TokenContextGenerator
Constructor and Description |
---|
DefaultTokenContextGenerator()
Creates a default context generator for tokenizer.
|
DefaultTokenContextGenerator(java.util.Set<java.lang.String> inducedAbbreviations)
Creates a default context generator for tokenizer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getContext(java.lang.String sentence,
int index)
Returns an array of features for the specified sentence string at the specified index.
|
public DefaultTokenContextGenerator()
public DefaultTokenContextGenerator(java.util.Set<java.lang.String> inducedAbbreviations)
inducedAbbreviations
- the induced abbreviationspublic 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.Copyright © 2010 - 2020 Adobe. All Rights Reserved