Dialogflow v3 API - Class SentimentAnalysisResult (2.17.0)

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

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

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

object > SentimentAnalysisResult

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

SentimentAnalysisResult()

public SentimentAnalysisResult()

SentimentAnalysisResult(SentimentAnalysisResult)

public SentimentAnalysisResult(SentimentAnalysisResult other)
Parameter
Name Description
other 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
Type Description
float

Score

public float Score { get; set; }

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

Property Value
Type Description
float

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月05日 UTC.