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, getContextprotected void collectFeatures(String prefix, String suffix, String previous, String next)
DefaultSDContextGeneratorcollectFeatures in class DefaultSDContextGeneratorprefix - 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 © 2019 The Apache Software Foundation. All rights reserved.