opennlp.grok.preprocess.sentdetect
Class SDContextGenerator

java.lang.Object
  |
  +--opennlp.grok.preprocess.sentdetect.SDContextGenerator
All Implemented Interfaces:
opennlp.maxent.ContextGenerator

public class SDContextGenerator
extends java.lang.Object
implements opennlp.maxent.ContextGenerator

Generate event contexts for maxent decisions for sentence detection.

Version:
$Revision: 1.6 $, $Date: 2002/02/08 12:13:37 $
Author:
Jason Baldridge, Eric D. Friedman

Constructor Summary
SDContextGenerator()
          Creates a new SDContextGenerator instance with no induced abbreviations.
SDContextGenerator(java.util.Set inducedAbbreviations)
          Creates a new SDContextGenerator instance which uses the set of induced abbreviations.
 
Method Summary
 java.lang.String[] getContext(java.lang.Object o)
          Builds up the list of features, anchored around a position within the StringBuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDContextGenerator

public SDContextGenerator()
Creates a new SDContextGenerator instance with no induced abbreviations.


SDContextGenerator

public SDContextGenerator(java.util.Set inducedAbbreviations)
Creates a new SDContextGenerator instance which uses the set of induced abbreviations.

Parameters:
inducedAbbreviations - a Set of Strings representing induced abbreviations in the training data. Example: "Mr."
Method Detail

getContext

public java.lang.String[] getContext(java.lang.Object o)
Builds up the list of features, anchored around a position within the StringBuffer.

Specified by:
getContext in interface opennlp.maxent.ContextGenerator


Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.