Class Range

java.lang.Object
org.tribuo.util.tokens.universal.Range
All Implemented Interfaces:
CharSequence

public final class Range extends Object implements CharSequence
A range currently being segmented.
  • Field Details

    • buff

      public char[] buff
    • len

      public int len
    • start

      public int start
    • end

      public int end
    • incr

      public int incr
    • type

      public Token.TokenType type
  • Method Details

    • set

      public void set(char c1, char c2, int start)
    • set

      public void set(char c, int start)
    • set

      public void set(char[] buff, int len, int start)
    • punct

      public void punct(char p, int start)
    • setType

      public void setType(Token.TokenType type)
    • length

      public int length()
      Specified by:
      length in interface CharSequence
    • charAt

      public char charAt(int index)
      Specified by:
      charAt in interface CharSequence
    • subSequence

      public CharSequence subSequence(int start, int end)
      Specified by:
      subSequence in interface CharSequence
    • toString

      public String toString()
      Specified by:
      toString in interface CharSequence
      Overrides:
      toString in class Object