edu.mit.nlp.segmenter.wrappers
Class LCSegWrapper

java.lang.Object
  extended by edu.mit.nlp.segmenter.wrappers.LCSegWrapper
All Implemented Interfaces:
Segmenter

public class LCSegWrapper
extends Object
implements Segmenter

wraps the LCSeg segmenter


Constructor Summary
LCSegWrapper()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LCSegWrapper

public LCSegWrapper()
Method Detail

initialize

public void initialize(String config_filename)
Description copied from interface: Segmenter
Do whatever initialize you need from this config file

Specified by:
initialize in interface Segmenter
Parameters:
config_filename - the path to the config file

segmentTexts

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

Specified by:
segmentTexts in interface Segmenter
Parameters:
texts - the array of texts
num_segs - the number of segments per text
Returns:
a list of arrays of segmentation points

setDebug

public void setDebug(boolean debug)
Description copied from interface: Segmenter
tells your d00d to set its debug flag

Specified by:
setDebug in interface Segmenter


Copyright © 2008 MIT. All Rights Reserved.