public class SentenceContextGenerator extends DefaultSDContextGenerator
Modifier and Type | Field and Description |
---|---|
static char[] |
eosCharacters |
buf, collectFeats
Constructor and Description |
---|
SentenceContextGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
collectFeatures(String prefix,
String suffix,
String previous,
String next)
Determines some of the features for the sentence detector and adds them to list features.
|
collectFeatures, getContext
protected void collectFeatures(String prefix, String suffix, String previous, String next)
DefaultSDContextGenerator
collectFeatures
in class DefaultSDContextGenerator
prefix
- String preceding the eos character in the eos token.suffix
- String following the eos character in the eos token.previous
- Space delimited token preceding token containing eos character.next
- Space delimited token following token containing eos character.Copyright © 2016 The Apache Software Foundation. All rights reserved.