edu.cmu.minorthird.classify.sequential
Class CMMLearner

java.lang.Object
  extended by edu.cmu.minorthird.classify.sequential.CMMLearner
All Implemented Interfaces:
BatchSequenceClassifierLearner, SequenceClassifierLearner

public class CMMLearner
extends java.lang.Object
implements BatchSequenceClassifierLearner

Train a CMM (in batch mode).

Author:
William Cohen

Constructor Summary
CMMLearner()
           
CMMLearner(ClassifierLearner baseLearner, int historySize)
           
 
Method Summary
 SequenceClassifier batchTrain(SequenceDataset dataset)
           
 int getHistorySize()
          Return the number of previous predictions used as features in learning.
 void setHistorySize(int newHistorySize)
           
 void setSchema(ExampleSchema schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMMLearner

public CMMLearner()

CMMLearner

public CMMLearner(ClassifierLearner baseLearner,
                  int historySize)
Method Detail

getHistorySize

public int getHistorySize()
Description copied from interface: SequenceClassifierLearner
Return the number of previous predictions used as features in learning.

Specified by:
getHistorySize in interface SequenceClassifierLearner

setHistorySize

public void setHistorySize(int newHistorySize)

setSchema

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

batchTrain

public SequenceClassifier batchTrain(SequenceDataset dataset)
Specified by:
batchTrain in interface BatchSequenceClassifierLearner