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
public interface EventModelSequenceTrainer<T> extends Trainer
A specializedTrainerthat is based on a 'EventModelSequence' approach.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSEQUENCE_VALUE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MaxentModeltrain(SequenceStream<T> events)Trains aMaxentModelfor givenevents.
-
-
-
Field Detail
-
SEQUENCE_VALUE
static final String SEQUENCE_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
train
MaxentModel train(SequenceStream<T> events) throws IOException
Trains aMaxentModelfor givenevents.- Parameters:
events- The inputevents.- Returns:
- The trained
MaxentModel. - Throws:
IOException- Thrown if IO errors occurred.
-
-