Package opennlp.tools.ml.model
Class Sequence<T>
java.lang.Object
opennlp.tools.ml.model.Sequence<T>
- Type Parameters:
T
- The type of the object which is the source of this sequence.
Class which models a sequence.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Sequence
Creates a new sequence made up of the specified events and derived from the specified source.- Parameters:
events
- The events of the sequence.source
- The source object for this sequence.
-
-
Method Details
-
getEvents
Returns the events which make up this sequence.- Returns:
- the events which make up this sequence.
-
getSource
Returns an object from which this sequence can be derived. This object is used when the events for this sequence need to be re-derived such as in a call to SequenceStream.updateContext.- Returns:
- an object from which this sequence can be derived.
-