Class SentenceContextGenerator
java.lang.Object
opennlp.tools.sentdetect.DefaultSDContextGenerator
opennlp.tools.sentdetect.lang.th.SentenceContextGenerator
- All Implemented Interfaces:
SDContextGenerator
Creates contexts/features for end-of-sentence detection in Thai text.
-
Field Summary
FieldsFields inherited from class DefaultSDContextGenerator
buf, collectFeats -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DefaultSDContextGenerator
getContext
-
Field Details
-
eosCharacters
public static final char[] eosCharacters
-
-
Constructor Details
-
SentenceContextGenerator
public SentenceContextGenerator()
-
-
Method Details
-
collectFeatures
protected void collectFeatures(String prefix, String suffix, String previous, String next, Character eosChar) Description copied from class:DefaultSDContextGeneratorDetermines some features for the sentence detector and adds them to list features.- Overrides:
collectFeaturesin classDefaultSDContextGenerator- Parameters:
prefix- String preceding theeosCharin the eos token.suffix- String following theeosCharin the eos token.previous- Space delimited token preceding token containingeosChar.next- Space delimited token following token containingeosChar.eosChar- the EOS character been analyzed.
-