SentimentResult<T>
Models & Types · AiDotNet.Finance.Interfaces
Result of sentiment analysis on a single text.
For Beginners
This class holds the sentiment prediction for a piece of text, including the predicted class (positive/negative/neutral), the confidence score, and the probability distribution over all classes.
Constructors
| Constructor | Summary |
|---|---|
SentimentResult() |
Properties
| Property | Summary |
|---|---|
Dictionary<string, T> ClassProbabilities { get; set; } |
Gets or sets the probability distribution over all sentiment classes. |
T Confidence { get; set; } |
Gets or sets the confidence score (probability of predicted class). |
string OriginalText { get; set; } |
Gets or sets the original text that was analyzed. |
string PredictedClass { get; set; } |
Gets or sets the predicted sentiment class. |