Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SentenceSentiment

Package version

The predicted sentiment for a given span of text. For more information regarding text sentiment, see https://docs.microsoft.com/azure/cognitive-services/Text-Analytics/how-tos/text-analytics-how-to-sentiment-analysis. The predicted sentiment for a given span of text. For more information regarding text sentiment, see https://docs.microsoft.com/azure/cognitive-services/Text-Analytics/how-tos/text-analytics-how-to-sentiment-analysis.

Hierarchy

  • SentenceSentiment

Index

Properties

Optional assessments

assessments: SentenceAssessment[]

The array of assessments for the sentence.

confidenceScores

confidenceScores: SentimentConfidenceScores

The sentiment confidence score between 0 and 1 for the sentence for all classes. The sentiment confidence score between 0 and 1 for the sentence for all classes.

length

length: number

The length of the sentence. The length of the sentence text.

offset

offset: number

The sentence offset from the start of the document. The sentence text offset from the start of the document.

opinions

opinions: Opinion[]

The list of opinions mined from this sentence. For example in "The food is good, but the service is bad", we would mine these two opinions "food is good", "service is bad". Only returned if includeOpinionMining is set to True in the call to analyzeSentiment.

sentiment

The predicted Sentiment for the sentence. The predicted Sentiment for the sentence.

Optional targets

targets: SentenceTarget[]

The array of sentence targets for the sentence.

text

text: string

The sentence text. The sentence text.

Generated using TypeDoc