Package opennlp.tools.ml
Interface SequenceTrainer
-
-
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 <T> SequenceClassificationModel<String>
train(SequenceStream<T> events)
Trains aSequenceClassificationModel
for givenevents
.
-
-
-
Field Detail
-
SEQUENCE_VALUE
static final String SEQUENCE_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
train
<T> SequenceClassificationModel<String> train(SequenceStream<T> events) throws IOException
Trains aSequenceClassificationModel
for givenevents
.- Type Parameters:
T
- The generic type of elements to process via theSequenceStream
.- Parameters:
events
- The inputevents
.- Returns:
- The trained
SequenceClassificationModel
. - Throws:
IOException
- Thrown if IO errors occurred.
-
-