Show / Hide Table of Contents

Class TokenLikelihood

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

Inheritance
object
TokenLikelihood
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.GenerativeaiinferenceService.Models
Assembly: OCI.DotNetSDK.Generativeaiinference.dll
Syntax
public class TokenLikelihood

Properties

Likelihood

Declaration
[JsonProperty(PropertyName = "likelihood")]
public double Likelihood { get; set; }
Property Value
Type Description
double

The likelihood of this token during generation.

Token

Declaration
[JsonProperty(PropertyName = "token")]
public string Token { get; set; }
Property Value
Type Description
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.

In this article
Back to top