Class ConfidencePredictingSequenceModel.Subsequence

java.lang.Object
org.tribuo.classification.sequence.ConfidencePredictingSequenceModel.Subsequence
All Implemented Interfaces:
Serializable
Enclosing class:
ConfidencePredictingSequenceModel

public static class ConfidencePredictingSequenceModel.Subsequence extends Object implements Serializable
A range class used to define a subsequence of a SequenceExample.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    The subsequence start index.
    final int
    The subsequence end index.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Subsequence(int begin, int end)
    Constructs a subsequence for the fixed range, exclusive of the end.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of elements in this subsequence.
     

    Methods inherited from class java.lang.Object

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

    • begin

      public final int begin
      The subsequence start index.
    • end

      public final int end
      The subsequence end index.
  • Constructor Details

    • Subsequence

      public Subsequence(int begin, int end)
      Constructs a subsequence for the fixed range, exclusive of the end.
      Parameters:
      begin - The start element.
      end - The end element.
  • Method Details

    • length

      public int length()
      Returns the number of elements in this subsequence.
      Returns:
      The length of the subsequence.
    • toString

      public String toString()
      Overrides:
      toString in class Object