Package opennlp.tools.ml
Interface SequenceTrainer
-
-
Field Summary
Fields Modifier and Type Field Description static StringSEQUENCE_VALUE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> SequenceClassificationModel<String>train(SequenceStream<T> events)Trains aSequenceClassificationModelfor 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 aSequenceClassificationModelfor 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.
-
-