edu.cmu.minorthird.classify.sequential
Class SegmentCollinsPerceptronLearner

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

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

Author:
William Cohen

Nested Class Summary
static class SegmentCollinsPerceptronLearner.ViterbiSearcher
           
static class SegmentCollinsPerceptronLearner.ViterbiSegmenter
           
 
Field Summary
 
Fields inherited from interface edu.cmu.minorthird.classify.sequential.SequenceConstants
HISTORY_FEATURE, NULL_CLASS_NAME
 
Constructor Summary
SegmentCollinsPerceptronLearner()
           
SegmentCollinsPerceptronLearner(int epochs)
           
SegmentCollinsPerceptronLearner(int epochs, boolean updatedViterbi)
           
 
Method Summary
 Segmenter batchTrain(SegmentDataset dataset)
           
 int getHistorySize()
           
 int getNumberOfEpochs()
           
 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

SegmentCollinsPerceptronLearner

public SegmentCollinsPerceptronLearner(int epochs)

SegmentCollinsPerceptronLearner

public SegmentCollinsPerceptronLearner(int epochs,
                                       boolean updatedViterbi)

SegmentCollinsPerceptronLearner

public SegmentCollinsPerceptronLearner()
Method Detail

setSchema

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

getNumberOfEpochs

public int getNumberOfEpochs()

setNumberOfEpochs

public void setNumberOfEpochs(int newNumberOfEpochs)

getHistorySize

public int getHistorySize()

batchTrain

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