Class: Google::Cloud::Dialogflow::V2::Sentiment
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::Sentiment
- Defined in:
- lib/google/cloud/dialogflow/v2/doc/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.
Instance Attribute Summary collapse
-
#magnitude ⇒ Float
A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment, regardless of score (positive or negative).
-
#score ⇒ Float
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
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).
460 |
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb', line 460 class Sentiment; end |
#score ⇒ Float
Returns Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
460 |
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb', line 460 class Sentiment; end |