Package opennlp.tools.ml
Class AbstractEventModelSequenceTrainer
java.lang.Object
opennlp.tools.ml.AbstractTrainer
opennlp.tools.ml.AbstractEventModelSequenceTrainer
- All Implemented Interfaces:
Trainer
,EventModelSequenceTrainer<Event>
- Direct Known Subclasses:
SimplePerceptronSequenceTrainer
public abstract class AbstractEventModelSequenceTrainer
extends AbstractTrainer
implements EventModelSequenceTrainer<Event>
A basic
EventModelSequenceTrainer
implementation that processes events
.-
Field Summary
Fields inherited from class opennlp.tools.ml.AbstractTrainer
ALGORITHM_PARAM, CUTOFF_DEFAULT, CUTOFF_PARAM, ITERATIONS_DEFAULT, ITERATIONS_PARAM, TRAINER_TYPE_PARAM
Fields inherited from interface opennlp.tools.ml.EventModelSequenceTrainer
SEQUENCE_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract MaxentModel
doTrain
(SequenceStream<Event> events) final MaxentModel
train
(SequenceStream<Event> events) Trains aMaxentModel
for givenevents
.Methods inherited from class opennlp.tools.ml.AbstractTrainer
getAlgorithm, getCutoff, getIterations, init, validate
-
Constructor Details
-
AbstractEventModelSequenceTrainer
public AbstractEventModelSequenceTrainer()
-
-
Method Details
-
doTrain
- Throws:
IOException
-
train
Description copied from interface:EventModelSequenceTrainer
Trains aMaxentModel
for givenevents
.- Specified by:
train
in interfaceEventModelSequenceTrainer<Event>
- Parameters:
events
- The inputevents
.- Returns:
- The trained
MaxentModel
. - Throws:
IOException
- Thrown if IO errors occurred.
-