SentimentAnalysisSuccessResult interface

The result of a sentiment analysis action on a single document, containing the predicted sentiment for each sentence as well as for the full document.

Extends

Properties

confidenceScores

Document level sentiment confidence scores between 0 and 1 for each sentiment class.

sentences

The predicted sentiment for each sentence in the corresponding document.

sentiment

Predicted sentiment for document. For a list of possible values, see DocumentSentimentLabel

Inherited Properties

error

Discriminant to determine if this is an error result.

id

Unique, non-empty document identifier.

statistics

Statistics about the input document and how it was processed by the service. This property will have a value when includeStatistics is set to true in the client call.

warnings

An array of warning data corresponding to this document.

If no warnings were returned, this array will be empty.

Property Details

confidenceScores

Document level sentiment confidence scores between 0 and 1 for each sentiment class.

confidenceScores: SentimentConfidenceScores

Property Value

sentences

The predicted sentiment for each sentence in the corresponding document.

sentences: SentenceSentiment[]

Property Value

sentiment

Predicted sentiment for document. For a list of possible values, see DocumentSentimentLabel

sentiment: DocumentSentimentLabel

Property Value

Inherited Property Details

error

Discriminant to determine if this is an error result.

error?: undefined

Property Value

undefined

Inherited From TextAnalysisSuccessResult.error

id

Unique, non-empty document identifier.

id: string

Property Value

string

Inherited From TextAnalysisSuccessResult.id

statistics

Statistics about the input document and how it was processed by the service. This property will have a value when includeStatistics is set to true in the client call.

statistics?: TextDocumentStatistics

Property Value

Inherited From TextAnalysisSuccessResult.statistics

warnings

An array of warning data corresponding to this document.

If no warnings were returned, this array will be empty.

warnings: DocumentWarning[]

Property Value

Inherited From TextAnalysisSuccessResult.warnings