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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Event[]
     
    private final T
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Sequence(Event[] events, T source)
    Initializes Sequence made up of the specified events and derived from the specified source.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    This object is used when the events for this sequence need to be re-derived such as in a call to
    invalid reference
    SequenceStream#updateContext(Sequence, AbstractModel)
    .

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • events

      private final Event[] events
    • source

      private final T source
  • Constructor Details

    • Sequence

      public Sequence(Event[] events, T source)
      Initializes 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

      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 to
      invalid reference
      SequenceStream#updateContext(Sequence, AbstractModel)
      .
      Returns:
      Retrieves an object from which this sequence can be derived.