public sealed class TextSentimentAnnotation : IMessage<TextSentimentAnnotation>, IEquatable<TextSentimentAnnotation>, IDeepCloneable<TextSentimentAnnotation>, IBufferMessage, IMessage
Contains annotation details specific to text sentiment.
Output only. The sentiment with the semantic, as given to the
[AutoMl.ImportData][google.cloud.automl.v1.AutoMl.ImportData] when populating the dataset from which the model used
for the prediction had been trained.
The sentiment values are between 0 and
Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive),
with higher value meaning more positive sentiment. They are completely
relative, i.e. 0 means least positive sentiment and sentiment_max means
the most positive from the sentiments present in the train data. Therefore
e.g. if train data had only negative sentiment, then sentiment_max, would
be still negative (although least negative).
The sentiment shouldn't be confused with "score" or "magnitude"
from the previous Natural Language Sentiment Analysis API.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This webpage details the `TextSentimentAnnotation` class within the `Google.Cloud.AutoML.V1` namespace, which is designed to hold annotation information specific to text sentiment analysis."],["The `TextSentimentAnnotation` class has been implemented with several interfaces: `IMessage\u003cTextSentimentAnnotation\u003e`, `IEquatable\u003cTextSentimentAnnotation\u003e`, `IDeepCloneable\u003cTextSentimentAnnotation\u003e`, `IBufferMessage`, and `IMessage`."],["This class includes a `Sentiment` property, an integer value representing the sentiment, where higher values indicate more positive sentiment relative to the training data."],["The available documentation covers multiple versions of the `TextSentimentAnnotation` class, ranging from version 2.2.0 to the latest version 3.4.0."],["There are 2 constructors included in this class, one default and one that accepts another `TextSentimentAnnotation` object."]]],[]]