Class PicoLLMCompletion.Token

  • Enclosing class:
    PicoLLMCompletion

    public static class PicoLLMCompletion.Token
    extends java.lang.Object
    Represents a generated token.
    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(java.lang.String token, float logProb)
      Constructor for the Token class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getLogProb()
      Getter for the log probability.
      java.lang.String getToken()
      Getter for the token.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Token

        public Token​(java.lang.String token,
                     float logProb)
        Constructor for the Token class.
        Parameters:
        token - The token.
        logProb - The log probability.
    • Method Detail

      • getToken

        public java.lang.String getToken()
        Getter for the token.
        Returns:
        The token.
      • getLogProb

        public float getLogProb()
        Getter for the log probability.
        Returns:
        The log probability.