Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPredictPredictionTextSentimentPredictionResult
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaPredictPredictionTextSentimentPredictionResult
- 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
Prediction output format for Text Sentiment
Instance Attribute Summary collapse
-
#sentiment ⇒ Fixnum
The integer sentiment labels between 0 (inclusive) and sentimentMax label ( inclusive), while 0 maps to the least positive sentiment and sentimentMax maps to the most positive one.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaPredictPredictionTextSentimentPredictionResult
constructor
A new instance of GoogleCloudAiplatformV1beta1SchemaPredictPredictionTextSentimentPredictionResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaPredictPredictionTextSentimentPredictionResult
Returns a new instance of GoogleCloudAiplatformV1beta1SchemaPredictPredictionTextSentimentPredictionResult.
27209 27210 27211 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27209 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sentiment ⇒ Fixnum
The integer sentiment labels between 0 (inclusive) and sentimentMax label (
inclusive), while 0 maps to the least positive sentiment and sentimentMax maps
to the most positive one. The higher the score is, the more positive the
sentiment in the text snippet is. Note: sentimentMax is an integer value
between 1 (inclusive) and 10 (inclusive).
Corresponds to the JSON property sentiment
27207 27208 27209 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27207 def sentiment @sentiment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
27214 27215 27216 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27214 def update!(**args) @sentiment = args[:sentiment] if args.key?(:sentiment) end |