opennlp.tools.sentdetect.lang.th
Class SentenceContextGenerator

java.lang.Object
  extended by opennlp.tools.sentdetect.DefaultSDContextGenerator
      extended by 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.


Field Summary
static char[] eosCharacters
           
 
Fields inherited from class opennlp.tools.sentdetect.DefaultSDContextGenerator
buf, collectFeats
 
Constructor Summary
SentenceContextGenerator()
           
 
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 opennlp.tools.sentdetect.DefaultSDContextGenerator
getContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eosCharacters

public static final char[] eosCharacters
Constructor Detail

SentenceContextGenerator

public SentenceContextGenerator()
Method Detail

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.