Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate (v0.54.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::LogprobsResult::Candidate.

Candidate for the logprobs token and score.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#log_probability

def log_probability() -> ::Float
Returns
  • (::Float) — The candidate's log probability.

#log_probability=

def log_probability=(value) -> ::Float
Parameter
  • value (::Float) — The candidate's log probability.
Returns
  • (::Float) — The candidate's log probability.

#token

def token() -> ::String
Returns
  • (::String) — The candidate’s token string value.

#token=

def token=(value) -> ::String
Parameter
  • value (::String) — The candidate’s token string value.
Returns
  • (::String) — The candidate’s token string value.

#token_id

def token_id() -> ::Integer
Returns
  • (::Integer) — The candidate’s token id value.

#token_id=

def token_id=(value) -> ::Integer
Parameter
  • value (::Integer) — The candidate’s token id value.
Returns
  • (::Integer) — The candidate’s token id value.