edu.mit.nlp.segmenter
Interface Segmenter

All Known Subinterfaces:
InitializableSegmenter
All Known Implementing Classes:
BayesWrapper, CuCoSeg, LCSegWrapper, MCSWrapper, PerfectSegmenter, UIWrapper

public interface Segmenter

If you want to have a segmenter be evaluated in SegTester, you must write a wrapper that implements this interface. It's easy.


Method Summary
 void initialize(String config_filename)
          Do whatever initialize you need from this config file
 List[] segmentTexts(MyTextWrapper[] texts, int[] num_segs)
          segment a bunch of texts.
 void setDebug(boolean debug)
          tells your d00d to set its debug flag
 

Method Detail

initialize

void initialize(String config_filename)
Do whatever initialize you need from this config file

Parameters:
config_filename - the path to the config file

segmentTexts

List[] segmentTexts(MyTextWrapper[] texts,
                    int[] num_segs)
segment a bunch of texts. we do this jointly in case you want to do processing across the whole set of texts together

Parameters:
texts - the array of texts
num_segs - the number of segments per text
Returns:
a list of arrays of segmentation points

setDebug

void setDebug(boolean debug)
tells your d00d to set its debug flag



Copyright © 2008 MIT. All Rights Reserved.