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, seehttps://docs.microsoft.com/azure/cognitive-services/language-service/sentiment-opinion-mining/overview. The predicted sentiment for a given span of text. For more information regarding text sentiment, see https://docs.microsoft.com//azure/cognitive-services/language-service/sentiment-opinion-mining/overview.

Hierarchy

  • SentenceSentiment

Index

Properties

Optional assessments

assessments: AssessmentSentiment[]

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", the following two opinions will be returned: "food is good" and "service is bad".

It is non-empty only returned if {@link includeOpinionMining} was set to true.

sentiment

The predicted Sentiment for the sentence. The predicted Sentiment for the sentence. For a list of possible values, see SentenceSentimentLabel

Optional targets

targets: SentenceTarget[]

The array of sentence targets for the sentence.

text

text: string

The sentence text. The sentence text.

Generated using TypeDoc