Class SentimentAnalysisResult (1.0.0)

public sealed class SentimentAnalysisResult : IMessage<SentimentAnalysisResult>, IEquatable<SentimentAnalysisResult>, IDeepCloneable<SentimentAnalysisResult>, IBufferMessage, IMessage

The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral.

Inheritance

System.Object > SentimentAnalysisResult

Implements

Google.Protobuf.IMessage<SentimentAnalysisResult>, System.IEquatable<SentimentAnalysisResult>, Google.Protobuf.IDeepCloneable<SentimentAnalysisResult>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessage

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

SentimentAnalysisResult()

public SentimentAnalysisResult()

SentimentAnalysisResult(SentimentAnalysisResult)

public SentimentAnalysisResult(SentimentAnalysisResult other)
Parameter
NameDescription
otherSentimentAnalysisResult

Properties

Magnitude

public float Magnitude { get; set; }

A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment, regardless of score (positive or negative).

Property Value
TypeDescription
System.Single

Score

public float Score { get; set; }

Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).

Property Value
TypeDescription
System.Single