Class EncodingResult

java.lang.Object
com.knuddels.jtokkit.api.EncodingResult

public final class EncodingResult extends Object
The result of encoding operation.
  • Constructor Details

    • EncodingResult

      public EncodingResult(IntArrayList tokens, boolean truncated)
  • Method Details

    • getTokens

      public IntArrayList 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

      public String toString()
      Overrides:
      toString in class Object