cc.mallet.fst
Class NoopTransducerTrainer
- java.lang.Object
-
- cc.mallet.fst.TransducerTrainer
-
- cc.mallet.fst.NoopTransducerTrainer
-
public class NoopTransducerTrainer extends TransducerTrainer
A TransducerTrainer that does no training, but simply acts as a container for a Transducer; for use in situations that require a TransducerTrainer, such as the TransducerEvaluator methods.
-
-
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 NoopTransducerTrainer(Transducer transducer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetIteration()TransducergetTransducer()booleanisFinishedTraining()booleantrain(InstanceList trainingSet)booleantrain(InstanceList trainingSet, int numIterations)Train the transducer associated with this TransducerTrainer.-
Methods inherited from class cc.mallet.fst.TransducerTrainer
addEvaluator, addEvaluators, removeEvaluator
-
-
-
-
Constructor Detail
-
NoopTransducerTrainer
public NoopTransducerTrainer(Transducer transducer)
-
-
Method Detail
-
getIteration
public int getIteration()
- Specified by:
getIterationin classTransducerTrainer
-
getTransducer
public Transducer getTransducer()
- Specified by:
getTransducerin classTransducerTrainer
-
isFinishedTraining
public boolean isFinishedTraining()
- Specified by:
isFinishedTrainingin classTransducerTrainer
-
train
public boolean train(InstanceList trainingSet)
- Overrides:
trainin classTransducerTrainer
-
train
public boolean train(InstanceList trainingSet, int numIterations)
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