TargetSentiment Struct

Definition

Contains the related assessments, predicted sentiment, confidence scores and other information about a target of a product. A Target of a product/service is a key component of that product/service.

For example in "The food at Hotel Foo is good", "food" is a target of "Hotel Foo".

public readonly struct TargetSentiment
type TargetSentiment = struct
Public Structure TargetSentiment
Inheritance
TargetSentiment

Properties

ConfidenceScores

Gets the sentiment confidence score (Softmax score) between 0 and 1, for the target for 'positive' and 'negative' labels. Its score for 'neutral' will always be 0. Higher values signify higher confidence.

Length

Gets the length of the target text.

Offset

Gets the starting position for the target text.

Sentiment

Gets the predicted sentiment for the analyzed target.

Text

Gets the target text.

A target of a product/service is a key component of that product/service.

For example in "The food at Hotel Foo is good", "food" is a target of "Hotel Foo".

Applies to