Package opennlp.tools.ml.model
Interface SequenceStream
- All Superinterfaces:
AutoCloseable
,ObjectStream<Sequence>
- All Known Implementing Classes:
ChunkSampleSequenceStream
,NameSampleSequenceStream
,POSSampleSequenceStream
Interface for streams of sequences used to train sequence models.
-
Method Summary
Modifier and TypeMethodDescriptionEvent[]
updateContext
(Sequence sequence, AbstractModel model) Creates a new event array based on the outcomes predicted by the specified parameters for the specified sequence.Methods inherited from interface opennlp.tools.util.ObjectStream
close, read, reset
-
Method Details
-
updateContext
Creates a new event array based on the outcomes predicted by the specified parameters for the specified sequence.- Parameters:
sequence
- The sequence to be evaluated.- Returns:
- event array
-