Class: Google::Cloud::AIPlatform::V1::Schema::Predict::Prediction::TextSentimentPredictionResult

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.rb

Overview

Prediction output format for Text Sentiment

Instance Attribute Summary collapse

Instance Attribute Details

#sentiment::Integer

Returns 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).

Returns:

  • (::Integer)

    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).



35
36
37
38
# File 'proto_docs/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.rb', line 35

class TextSentimentPredictionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end