Class Logprobs.Builder

  • Enclosing class:
    Logprobs

    public static class Logprobs.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • textOffset

        public Logprobs.Builder textOffset​(List<Integer> textOffset)
        The text offset.
        Parameters:
        textOffset - the value to set
        Returns:
        this builder
      • tokenLogprobs

        public Logprobs.Builder tokenLogprobs​(List<Double> tokenLogprobs)
        The logarithmic probabilites of the output token.
        Parameters:
        tokenLogprobs - the value to set
        Returns:
        this builder
      • tokens

        public Logprobs.Builder tokens​(List<String> tokens)
        The list of output tokens.
        Parameters:
        tokens - the value to set
        Returns:
        this builder
      • topLogprobs

        public Logprobs.Builder topLogprobs​(List<Map<String,​String>> topLogprobs)
        The logarithmic probabilities of each of the top k tokens.
        Parameters:
        topLogprobs - the value to set
        Returns:
        this builder