edu.cmu.minorthird.classify.sequential
Class SegmentGenericCollinsLearner
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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