Reference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::SentimentData.
The data for a sentiment annotation.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#magnitude
def magnitude() -> ::Float
Returns
- (::Float) — A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score.
#magnitude=
def magnitude=(value) -> ::Float
Parameter
- value (::Float) — A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score.
Returns
- (::Float) — A non-negative number from 0 to infinity which represents the abolute magnitude of sentiment regardless of score.
#score
def score() -> ::Float
Returns
- (::Float) — The sentiment score between -1.0 (negative) and 1.0 (positive).
#score=
def score=(value) -> ::Float
Parameter
- value (::Float) — The sentiment score between -1.0 (negative) and 1.0 (positive).
Returns
- (::Float) — The sentiment score between -1.0 (negative) and 1.0 (positive).