Dialogflow v3 API - Class WebhookRequest.Types.SentimentAnalysisResult (2.4.0)

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

Reference documentation and code samples for the Dialogflow v3 API class WebhookRequest.Types.SentimentAnalysisResult.

Represents the result of sentiment analysis.

Inheritance

Object > WebhookRequest.Types.SentimentAnalysisResult

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

SentimentAnalysisResult()

public SentimentAnalysisResult()

SentimentAnalysisResult(WebhookRequest.Types.SentimentAnalysisResult)

public SentimentAnalysisResult(WebhookRequest.Types.SentimentAnalysisResult other)
Parameter
NameDescription
otherWebhookRequest.Types.SentimentAnalysisResult

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
Single

Score

public float Score { get; set; }

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

Property Value
TypeDescription
Single