Class: Google::Cloud::Dialogflow::V2::Sentiment

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

Overview

The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text. See: https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values for how to interpret the result.

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



744
745
746
747
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 744

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



744
745
746
747
# File 'proto_docs/google/cloud/dialogflow/v2/session.rb', line 744

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