cc.mallet.fst
Class ShallowTransducerTrainer
- java.lang.Object
-
- cc.mallet.fst.TransducerTrainer
-
- cc.mallet.fst.ShallowTransducerTrainer
-
Deprecated.Use NoopTransducerTrainer instead
public class ShallowTransducerTrainer extends TransducerTrainer
Wraps around an already trained Transducer model.Use this class to pass to the *Evaluator.evaluateInstanceList when we don't have access to the *Trainer that was used to train the Transducer model.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class cc.mallet.fst.TransducerTrainer
TransducerTrainer.ByIncrements, TransducerTrainer.ByInstanceIncrements, TransducerTrainer.ByOptimization
-
-
Constructor Summary
Constructors Constructor and Description ShallowTransducerTrainer(Transducer transducer)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description intgetIteration()Deprecated.TransducergetTransducer()Deprecated.booleanisFinishedTraining()Deprecated.booleantrain(InstanceList trainingSet, int numIterations)Deprecated.Train the transducer associated with this TransducerTrainer.-
Methods inherited from class cc.mallet.fst.TransducerTrainer
addEvaluator, addEvaluators, removeEvaluator, train
-
-
-
-
Constructor Detail
-
ShallowTransducerTrainer
public ShallowTransducerTrainer(Transducer transducer)
Deprecated.
-
-
Method Detail
-
getIteration
public int getIteration()
Deprecated.- Specified by:
getIterationin classTransducerTrainer
-
getTransducer
public Transducer getTransducer()
Deprecated.- Specified by:
getTransducerin classTransducerTrainer
-
isFinishedTraining
public boolean isFinishedTraining()
Deprecated.- Specified by:
isFinishedTrainingin classTransducerTrainer
-
train
public boolean train(InstanceList trainingSet, int numIterations)
Deprecated.Description copied from class:TransducerTrainerTrain 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:
trainin classTransducerTrainer
-
-
DataMelt 3.0 © DataMelt by jWork.ORG