Package cc.mallet.fst
Class ShallowTransducerTrainer
- java.lang.Object
-
- cc.mallet.fst.TransducerTrainer
-
- cc.mallet.fst.ShallowTransducerTrainer
-
@Deprecated public class ShallowTransducerTrainer extends TransducerTrainer
Deprecated.Use NoopTransducerTrainer insteadWraps 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.
- Author:
- Gaurav Chandalia
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class cc.mallet.fst.TransducerTrainer
TransducerTrainer.ByIncrements, TransducerTrainer.ByInstanceIncrements, TransducerTrainer.ByOptimization
-
-
Field Summary
Fields Modifier and Type Field Description protected TransducertransducerDeprecated.
-
Constructor Summary
Constructors Constructor Description ShallowTransducerTrainer(Transducer transducer)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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, runEvaluators, train
-
-
-
-
Field Detail
-
transducer
protected Transducer transducer
Deprecated.
-
-
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
-
-