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 specializedTrainer
that is based on a 'EventModelSequence' approach.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SEQUENCE_VALUE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MaxentModel
train(SequenceStream<T> events)
Trains aMaxentModel
for 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 aMaxentModel
for givenevents
.- Parameters:
events
- The inputevents
.- Returns:
- The trained
MaxentModel
. - Throws:
IOException
- Thrown if IO errors occurred.
-
-