cc.mallet.fst
Class MEMMTrainer
java.lang.Object
cc.mallet.fst.TransducerTrainer
cc.mallet.fst.MEMMTrainer
public class MEMMTrainer
- extends TransducerTrainer
|
Method Summary |
int |
getIteration()
|
MEMMTrainer.MEMMOptimizableByLabelLikelihood |
getOptimizableMEMM(InstanceList trainingSet)
|
Transducer |
getTransducer()
|
boolean |
isFinishedTraining()
|
void |
printInstanceLists()
|
boolean |
train(InstanceList training)
|
boolean |
train(InstanceList training,
InstanceList validation,
InstanceList testing,
TransducerEvaluator eval,
int numIterations,
int numIterationsPerProportion,
double[] trainingProportions)
|
boolean |
train(InstanceList training,
int numIterations)
Train the transducer associated with this TransducerTrainer. |
boolean |
trainWithFeatureInduction(InstanceList trainingData,
InstanceList validationData,
InstanceList testingData,
TransducerEvaluator eval,
int numIterations,
int numIterationsBetweenFeatureInductions,
int numFeatureInductions,
int numFeaturesPerFeatureInduction,
double trueLabelProbThreshold,
boolean clusteredFeatureInduction,
double[] trainingProportions,
java.lang.String gainName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MEMMTrainer
public MEMMTrainer(MEMM memm)
getOptimizableMEMM
public MEMMTrainer.MEMMOptimizableByLabelLikelihood getOptimizableMEMM(InstanceList trainingSet)
train
public boolean train(InstanceList training)
- Overrides:
train in class TransducerTrainer
train
public boolean train(InstanceList training,
int numIterations)
- Description copied from class:
TransducerTrainer
- Train the transducer associated with this TransducerTrainer.
You should be able to call this method with different trainingSet objects.
Whether this causes the TransducerTrainer to combine both trainingSets or
to view the second as a new alternative is at the discretion of the particular
TransducerTrainer subclass involved.
- Specified by:
train in class TransducerTrainer
train
public boolean train(InstanceList training,
InstanceList validation,
InstanceList testing,
TransducerEvaluator eval,
int numIterations,
int numIterationsPerProportion,
double[] trainingProportions)
trainWithFeatureInduction
public boolean trainWithFeatureInduction(InstanceList trainingData,
InstanceList validationData,
InstanceList testingData,
TransducerEvaluator eval,
int numIterations,
int numIterationsBetweenFeatureInductions,
int numFeatureInductions,
int numFeaturesPerFeatureInduction,
double trueLabelProbThreshold,
boolean clusteredFeatureInduction,
double[] trainingProportions,
java.lang.String gainName)
printInstanceLists
public void printInstanceLists()
getIteration
public int getIteration()
- Specified by:
getIteration in class TransducerTrainer
getTransducer
public Transducer getTransducer()
- Specified by:
getTransducer in class TransducerTrainer
isFinishedTraining
public boolean isFinishedTraining()
- Specified by:
isFinishedTraining in class TransducerTrainer