Class Range
java.lang.Object
org.tribuo.util.tokens.universal.Range
- All Implemented Interfaces:
CharSequence
A range currently being segmented.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) int
length()
void
punct
(char p, int start) void
set
(char[] buff, int len, int start) void
set
(char c1, char c2, int start) void
set
(char c, int start) void
setType
(Token.TokenType type) subSequence
(int start, int end) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
buff
public char[] buff -
len
public int len -
start
public int start -
end
public int end -
incr
public int incr -
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
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-