edu.mit.nlp.segmenter.wrappers
Class MCSWrapper
java.lang.Object
edu.mit.nlp.segmenter.wrappers.MCSWrapper
- All Implemented Interfaces:
- Segmenter
public class MCSWrapper
- extends Object
- implements Segmenter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCSWrapper
public MCSWrapper()
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 textsnum_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.