class Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SentimentData
The data for a sentiment annotation.
Attributes
magnitude[RW]
A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score. Corresponds to the JSON property `magnitude` @return [Float]
score[RW]
The sentiment score between -1.0 (negative) and 1.0 (positive). Corresponds to the JSON property `score` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/contactcenterinsights_v1/classes.rb, line 2103 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/contactcenterinsights_v1/classes.rb, line 2108 def update!(**args) @magnitude = args[:magnitude] if args.key?(:magnitude) @score = args[:score] if args.key?(:score) end