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
Fields -
Method Summary
Modifier and TypeMethodDescriptiontrain(SequenceStream<T> events) Trains aMaxentModelfor givenevents.
-
Field Details
-
SEQUENCE_VALUE
- See Also:
-
-
Method Details
-
train
Trains aMaxentModelfor givenevents.- Parameters:
events- The inputevents.- Returns:
- The trained
MaxentModel. - Throws:
IOException- Thrown if IO errors occurred.
-