class Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2Sentiment
The sentiment, such as positive/negative feeling or association, for a unit of analysis, such as the query text.
Attributes
magnitude[RW]
A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment, regardless of score (positive or negative). Corresponds to the JSON property `magnitude` @return [Float]
score[RW]
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). Corresponds to the JSON property `score` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 10497 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 10502 def update!(**args) @magnitude = args[:magnitude] if args.key?(:magnitude) @score = args[:score] if args.key?(:score) end