Package opennlp.tools.ml
Interface EventModelSequenceTrainer<T>
- Type Parameters:
T
- The generic type of elements to process via aSequenceStream
.
- All Superinterfaces:
Trainer
- All Known Implementing Classes:
AbstractEventModelSequenceTrainer
,SimplePerceptronSequenceTrainer
A specialized
Trainer
that is based on a 'EventModelSequence' approach.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiontrain
(SequenceStream<T> events) Trains aMaxentModel
for givenevents
.
-
Field Details
-
SEQUENCE_VALUE
- See Also:
-
-
Method Details
-
train
Trains aMaxentModel
for givenevents
.- Parameters:
events
- The inputevents
.- Returns:
- The trained
MaxentModel
. - Throws:
IOException
- Thrown if IO errors occurred.
-