Class: Google::Cloud::Dialogflow::CX::V3::SentimentAnalysisResult

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/cx/v3/session.rb

Overview

The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral.

Instance Attribute Summary collapse

Instance Attribute Details

#magnitude::Float

Returns A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment, regardless of score (positive or negative).

Returns:

  • (::Float)

    A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment, regardless of score (positive or negative).



1261
1262
1263
1264
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 1261

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

#score::Float

Returns Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).

Returns:

  • (::Float)

    Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).



1261
1262
1263
1264
# File 'proto_docs/google/cloud/dialogflow/cx/v3/session.rb', line 1261

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