Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TokensInfo
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TokensInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Tokens info with a list of tokens and the corresponding list of token ids.
Instance Attribute Summary collapse
-
#token_ids ⇒ Array<Fixnum>
A list of token ids from the input.
-
#tokens ⇒ Array<String>
A list of tokens from the input.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1TokensInfo
constructor
A new instance of GoogleCloudAiplatformV1TokensInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1TokensInfo
Returns a new instance of GoogleCloudAiplatformV1TokensInfo.
27814 27815 27816 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27814 def initialize(**args) update!(**args) end |
Instance Attribute Details
#token_ids ⇒ Array<Fixnum>
A list of token ids from the input.
Corresponds to the JSON property tokenIds
27807 27808 27809 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27807 def token_ids @token_ids end |
#tokens ⇒ Array<String>
A list of tokens from the input.
Corresponds to the JSON property tokens
27812 27813 27814 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27812 def tokens @tokens end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
27819 27820 27821 27822 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 27819 def update!(**args) @token_ids = args[:token_ids] if args.key?(:token_ids) @tokens = args[:tokens] if args.key?(:tokens) end |