public sealed class LogprobsResult.Types.Candidate : IMessage<LogprobsResult.Types.Candidate>, IEquatable<LogprobsResult.Types.Candidate>, IDeepCloneable<LogprobsResult.Types.Candidate>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1beta1 API class LogprobsResult.Types.Candidate.
Candidate for the logprobs token and score.
Implements
IMessageLogprobsResultTypesCandidate, IEquatableLogprobsResultTypesCandidate, IDeepCloneableLogprobsResultTypesCandidate, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
Candidate()
public Candidate()
Candidate(Candidate)
public Candidate(LogprobsResult.Types.Candidate other)
Parameter | |
---|---|
Name | Description |
other |
LogprobsResultTypesCandidate |
Properties
HasLogProbability
public bool HasLogProbability { get; }
Gets whether the "log_probability" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasToken
public bool HasToken { get; }
Gets whether the "token" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasTokenId
public bool HasTokenId { get; }
Gets whether the "token_id" field is set
Property Value | |
---|---|
Type | Description |
bool |
LogProbability
public float LogProbability { get; set; }
The candidate's log probability.
Property Value | |
---|---|
Type | Description |
float |
Token
public string Token { get; set; }
The candidate’s token string value.
Property Value | |
---|---|
Type | Description |
string |
TokenId
public int TokenId { get; set; }
The candidate’s token id value.
Property Value | |
---|---|
Type | Description |
int |