opennlp.tools.sentdetect.lang.th
Class SentenceContextGenerator
java.lang.Object
opennlp.tools.sentdetect.DefaultSDContextGenerator
opennlp.tools.sentdetect.lang.th.SentenceContextGenerator
- All Implemented Interfaces:
- SDContextGenerator
public class SentenceContextGenerator
- extends DefaultSDContextGenerator
Creates contexts/features for end-of-sentence detection in Thai text.
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eosCharacters
public static final char[] eosCharacters
SentenceContextGenerator
public SentenceContextGenerator()
collectFeatures
protected void collectFeatures(String prefix,
String suffix,
String previous,
String next)
- Description copied from class:
DefaultSDContextGenerator
- Determines some of the features for the sentence detector and adds them to list features.
- Overrides:
collectFeatures
in class DefaultSDContextGenerator
- Parameters:
prefix
- String preceeding the eos character in the eos token.suffix
- String following the eos character in the eos token.previous
- Space delimited token preceeding token containing eos character.next
- Space delimited token following token containsing eos character.
Copyright © 2010. All Rights Reserved.