Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Claim
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Claim
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Claim that is extracted from the input text and facts that support it.
Instance Attribute Summary collapse
-
#end_index ⇒ Fixnum
Index in the input text where the claim ends (exclusive).
-
#fact_indexes ⇒ Array<Fixnum>
Indexes of the facts supporting this claim.
-
#score ⇒ Float
Confidence score of this corroboration.
-
#start_index ⇒ Fixnum
Index in the input text where the claim starts (inclusive).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Claim
constructor
A new instance of GoogleCloudAiplatformV1beta1Claim.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Claim
Returns a new instance of GoogleCloudAiplatformV1beta1Claim.
3325 3326 3327 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3325 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_index ⇒ Fixnum
Index in the input text where the claim ends (exclusive).
Corresponds to the JSON property endIndex
3308 3309 3310 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3308 def end_index @end_index end |
#fact_indexes ⇒ Array<Fixnum>
Indexes of the facts supporting this claim.
Corresponds to the JSON property factIndexes
3313 3314 3315 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3313 def fact_indexes @fact_indexes end |
#score ⇒ Float
Confidence score of this corroboration.
Corresponds to the JSON property score
3318 3319 3320 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3318 def score @score end |
#start_index ⇒ Fixnum
Index in the input text where the claim starts (inclusive).
Corresponds to the JSON property startIndex
3323 3324 3325 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3323 def start_index @start_index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3330 3331 3332 3333 3334 3335 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 3330 def update!(**args) @end_index = args[:end_index] if args.key?(:end_index) @fact_indexes = args[:fact_indexes] if args.key?(:fact_indexes) @score = args[:score] if args.key?(:score) @start_index = args[:start_index] if args.key?(:start_index) end |