edu.cmu.minorthird.classify.sequential
Class SegmentGenericCollinsLearner

java.lang.Object
  extended by edu.cmu.minorthird.classify.sequential.SegmentGenericCollinsLearner
All Implemented Interfaces:
BatchSegmenterLearner, SequenceConstants

public class SegmentGenericCollinsLearner
extends java.lang.Object
implements BatchSegmenterLearner, SequenceConstants

Semi-markov version of GenericCollinsLearner.

Author:
William Cohen

Field Summary
 
Fields inherited from interface edu.cmu.minorthird.classify.sequential.SequenceConstants
HISTORY_FEATURE, NULL_CLASS_NAME
 
Constructor Summary
SegmentGenericCollinsLearner()
           
SegmentGenericCollinsLearner(int epochs)
           
SegmentGenericCollinsLearner(OnlineClassifierLearner innerLearner)
           
SegmentGenericCollinsLearner(OnlineClassifierLearner innerLearner, int epochs)
           
SegmentGenericCollinsLearner(OnlineClassifierLearner innerLearner, int maxSegmentSize, int epochs)
           
 
Method Summary
 Segmenter batchTrain(SegmentDataset dataset)
           
 int getHistorySize()
           
 OnlineClassifierLearner getInnerLearner()
           
 int getNumberOfEpochs()
           
 void setInnerLearner(OnlineClassifierLearner newInnerLearner)
           
 void setNumberOfEpochs(int newNumberOfEpochs)
           
 void setSchema(ExampleSchema schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentGenericCollinsLearner

public SegmentGenericCollinsLearner()

SegmentGenericCollinsLearner

public SegmentGenericCollinsLearner(OnlineClassifierLearner innerLearner)

SegmentGenericCollinsLearner

public SegmentGenericCollinsLearner(int epochs)

SegmentGenericCollinsLearner

public SegmentGenericCollinsLearner(OnlineClassifierLearner innerLearner,
                                    int epochs)

SegmentGenericCollinsLearner

public SegmentGenericCollinsLearner(OnlineClassifierLearner innerLearner,
                                    int maxSegmentSize,
                                    int epochs)
Method Detail

setSchema

public void setSchema(ExampleSchema schema)
Specified by:
setSchema in interface BatchSegmenterLearner

getInnerLearner

public OnlineClassifierLearner getInnerLearner()

setInnerLearner

public void setInnerLearner(OnlineClassifierLearner newInnerLearner)

getHistorySize

public int getHistorySize()

getNumberOfEpochs

public int getNumberOfEpochs()

setNumberOfEpochs

public void setNumberOfEpochs(int newNumberOfEpochs)

batchTrain

public Segmenter batchTrain(SegmentDataset dataset)
Specified by:
batchTrain in interface BatchSegmenterLearner