Package opennlp.tools.ml.model
Interface SequenceStream<S>
-
- All Superinterfaces:
AutoCloseable
,ObjectStream<Sequence<S>>
- All Known Implementing Classes:
ChunkSampleSequenceStream
,LemmaSampleSequenceStream
,NameSampleSequenceStream
,POSSampleSequenceStream
public interface SequenceStream<S> extends ObjectStream<Sequence<S>>
Interface for streams ofsequences
used to train sequence models.- See Also:
Event
,ObjectStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Event[]
updateContext(Sequence<S> sequence, AbstractModel model)
Creates a new event array based on the outcomes predicted by the specified parameters for the specifiedSequence
.-
Methods inherited from interface opennlp.tools.util.ObjectStream
close, read, reset
-
-
-
-
Method Detail
-
updateContext
Event[] updateContext(Sequence<S> sequence, AbstractModel model)
Creates a new event array based on the outcomes predicted by the specified parameters for the specifiedSequence
.
-
-