Package com.knuddels.jtokkit.api
Class EncodingResult
java.lang.Object
com.knuddels.jtokkit.api.EncodingResult
The result of encoding operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of token idsbooleanReturns true if the token list was truncated because the maximum token length was exceededtoString()
-
Constructor Details
-
EncodingResult
-
-
Method Details
-
getTokens
Returns the list of token ids- Returns:
- the list of token ids
-
isTruncated
public boolean isTruncated()Returns true if the token list was truncated because the maximum token length was exceeded- Returns:
- true if the token list was truncated because the maximum token length was exceeded
-
toString
-