Class Token
java.lang.Object
org.tribuo.util.tokens.Token
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumTokenizers may product multiple kinds of tokens, depending on the application to which they're being put.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs 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- 
TokenConstructs a token.- Parameters:
- text- should be equivalent to the substring of the original tokenized text for the given character offsets start and end
- start- the starting offset of the token
- end- the ending offset of the token (exclusive or inclusive?)
 
- 
TokenConstructs a token.- Parameters:
- text- should be equivalent to the substring of the original tokenized text for the given character offsets start and end
- start- the starting offset of the token
- end- the ending offset of the token (exclusive or inclusive?)
- type- the type of the token
 
 
- 
- 
Method Details- 
length
- 
toString
 
-