Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TargetSentiment

Package version

TargetSentiment contains the 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".

Hierarchy

  • TargetSentiment

Index

Properties

confidenceScores

confidenceScores: TargetConfidenceScores

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

length

length: number

The length of the Target text.

offset

offset: number

The Target text offset from the start of the sentence.

sentiment

The predicted Sentiment for the Target. For a list of possible values, see TokenSentimentLabel

text

text: string

The target text.

Generated using TypeDoc