Class Token
java.lang.Object
org.tribuo.util.tokens.Token
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Tokenizers may product multiple kinds of tokens, depending on the application to which they're being put. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a token.Token
(String text, int start, int end, Token.TokenType type) Constructs a token. -
Method Summary
-
Field Details
-
text
-
start
-
end
-
type
-
-
Constructor Details
-
Token
Constructs a token.- Parameters:
text
- should be equivalent to the substring of the original tokenized text for the given character offsets start and endstart
- the starting offset of the tokenend
- the ending offset of the token (exclusive or inclusive?)
-
Token
Constructs a token.- Parameters:
text
- should be equivalent to the substring of the original tokenized text for the given character offsets start and endstart
- the starting offset of the tokenend
- the ending offset of the token (exclusive or inclusive?)type
- the type of the token
-
-
Method Details
-
length
-
toString
-