Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AspectSentiment

Package version

AspectSentiment contains the related opinions, predicted sentiment, confidence scores and other information about an aspect of a product. An aspect of a product/service is a key component of that product/service. For example in "The food at Hotel Foo is good", "food" is an aspect of "Hotel Foo".

Hierarchy

  • AspectSentiment

Index

Properties

confidenceScores

confidenceScores: AspectConfidenceScoreLabel

The sentiment confidence score between 0 and 1 for the aspect for 'positive' and 'negative' labels.

offset

offset: number

The aspect text offset from the start of the sentence.

sentiment

sentiment: SentenceAspectSentiment

The predicted Sentiment for the aspect. Possible values include 'positive', 'mixed', and 'negative'.

text

text: string

The aspect text.

Generated using TypeDoc