public final class EncodingResult
extends Object
The result of encoding operation.
-
Constructor Summary
Constructors
-
Method Summary
-
Constructor Details
-
EncodingResult
public EncodingResult(List<Integer> tokens,
boolean truncated)
-
Method Details
-
getTokens
- 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
-