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.
public class Sequence<T> extends Object
Class which models a sequence.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event[]
getEvents()
T
getSource()
This object is used when the events for this sequence need to be re-derived such as in a call toSequenceStream.updateContext(Sequence, AbstractModel)
.
-
-
-
Constructor Detail
-
Sequence
public Sequence(Event[] events, T source)
InitializesSequence
made up of the specified events and derived from the specified source.- Parameters:
events
- Theevents
of the sequence.source
- Thesource object
for this sequence.
-
-
Method Detail
-
getEvents
public Event[] getEvents()
- Returns:
- Retrieves the events which make up this sequence.
-
getSource
public T getSource()
This object is used when the events for this sequence need to be re-derived such as in a call toSequenceStream.updateContext(Sequence, AbstractModel)
.- Returns:
- Retrieves an object from which this sequence can be derived.
-
-