edu.cmu.minorthird.classify.sequential
Class HMMLearner

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

public class HMMLearner
extends java.lang.Object
implements BatchSequenceClassifierLearner, SequenceConstants


Field Summary
protected static boolean DEBUG
           
protected  java.lang.String[] history
           
protected  int historySize
           
protected static org.apache.log4j.Logger log
           
protected  int numberOfEpochs
           
 
Fields inherited from interface edu.cmu.minorthird.classify.sequential.SequenceConstants
HISTORY_FEATURE, NULL_CLASS_NAME
 
Constructor Summary
HMMLearner()
           
HMMLearner(int historySize)
           
 
Method Summary
 SequenceClassifier batchTrain(SequenceDataset dataset)
           
 int getHistorySize()
          Return the number of previous predictions used as features in learning.
 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
 

Field Detail

historySize

protected int historySize

history

protected java.lang.String[] history

log

protected static org.apache.log4j.Logger log

DEBUG

protected static final boolean DEBUG

numberOfEpochs

protected int numberOfEpochs
Constructor Detail

HMMLearner

public HMMLearner(int historySize)

HMMLearner

public HMMLearner()
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

getNumberOfEpochs

public int getNumberOfEpochs()

setNumberOfEpochs

public void setNumberOfEpochs(int newNumberOfEpochs)

setSchema

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

batchTrain

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