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 -
Constructor Summary
ConstructorsConstructorDescriptionSubsequence
(int begin, int end) Constructs a subsequence for the fixed range, exclusive of the end. -
Method Summary
-
Field Details
-
begin
public final int begin -
end
public final int end
-
-
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
-