Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace TokenLikelihood

An object that contains the returned token and its corresponding likelihood.

Properties

Optional likelihood

likelihood: undefined | number

The likelihood of this token during generation. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Optional token

token: undefined | string

A word, part of a word, or a punctuation.

For example, apple is a token and friendship is made up of two tokens, friend and ship. When you run a model, you can set the maximum number of output tokens. Estimate three tokens per word.

Functions

getDeserializedJsonObj

getJsonObj