public sealed class TextSentimentPredictionResult : IMessage<TextSentimentPredictionResult>, IEquatable<TextSentimentPredictionResult>, IDeepCloneable<TextSentimentPredictionResult>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1beta1 API class TextSentimentPredictionResult.
Prediction output format for Text Sentiment
Implements
IMessageTextSentimentPredictionResult, IEquatableTextSentimentPredictionResult, IDeepCloneableTextSentimentPredictionResult, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1.Schema.Predict.PredictionAssembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
TextSentimentPredictionResult()
public TextSentimentPredictionResult()
TextSentimentPredictionResult(TextSentimentPredictionResult)
public TextSentimentPredictionResult(TextSentimentPredictionResult other)
Parameter | |
---|---|
Name | Description |
other |
TextSentimentPredictionResult |
Properties
Sentiment
public int Sentiment { get; set; }
The integer sentiment labels between 0 (inclusive) and sentimentMax label (inclusive), while 0 maps to the least positive sentiment and sentimentMax maps to the most positive one. The higher the score is, the more positive the sentiment in the text snippet is. Note: sentimentMax is an integer value between 1 (inclusive) and 10 (inclusive).
Property Value | |
---|---|
Type | Description |
int |