你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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

Name Description
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