public class ShallowTransducerTrainer extends TransducerTrainer
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.
TransducerTrainer.ByIncrements, TransducerTrainer.ByInstanceIncrements, TransducerTrainer.ByOptimization
Modifier and Type | Field and Description |
---|---|
protected Transducer |
transducer
Deprecated.
|
Constructor and Description |
---|
ShallowTransducerTrainer(Transducer transducer)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getIteration()
Deprecated.
|
Transducer |
getTransducer()
Deprecated.
|
boolean |
isFinishedTraining()
Deprecated.
|
boolean |
train(InstanceList trainingSet,
int numIterations)
Deprecated.
Train the transducer associated with this TransducerTrainer.
|
addEvaluator, addEvaluators, removeEvaluator, runEvaluators, train
protected Transducer transducer
public ShallowTransducerTrainer(Transducer transducer)
public int getIteration()
getIteration
in class TransducerTrainer
public Transducer getTransducer()
getTransducer
in class TransducerTrainer
public boolean isFinishedTraining()
isFinishedTraining
in class TransducerTrainer
public boolean train(InstanceList trainingSet, int numIterations)
TransducerTrainer
train
in class TransducerTrainer
Copyright © 2016. All rights reserved.