Struct SentenceSentiment | Azure SDK for Net
Rachel Ross
Published Feb 16, 2026
The predicted sentiment for a given span of text. For more information regarding text sentiment, see .
Namespace: Azure.AI.TextAnalytics
Assembly: Azure.AI.TextAnalytics.dll
Syntax
public struct SentenceSentiment Properties
ConfidenceScores
Gets the sentiment confidence score (Softmax score) between 0 and 1, for each sentiment. Higher values signify higher confidence.
Declaration
public Azure.AI.TextAnalytics.SentimentConfidenceScores ConfidenceScores { get; } Property Value
MinedOpinions
Declaration
public System.Collections.Generic.IReadOnlyCollection<Azure.AI.TextAnalytics.MinedOpinion> MinedOpinions { get; } Property Value
Offset
Gets the starting position (in UTF-16 code units) for the matching text in the sentence.
Declaration
public int Offset { get; } Property Value
Sentiment
Gets the predicted sentiment for the analyzed sentence.
Declaration
public Azure.AI.TextAnalytics.TextSentiment Sentiment { get; } Property Value
Text
Gets the sentence text.
Declaration
public string Text { get; }