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

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

Overview

Represents the result of sentiment analysis.

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



483
484
485
486
# File 'proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb', line 483

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



483
484
485
486
# File 'proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb', line 483

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