Cloud NiFi Processors
  • Calculated Systems NiFi Processors
  • Amazon Web Services
    • Comprehend API
      • DetectDominantLanguage Processor
      • DetectKeyPhrases Processor
      • DetectEntities Processor
        • Entity Types
      • DetectSentiment Processor
      • DetectSyntax Processor
    • Textract API
      • DetectDocumentText Processor
      • AnalyzeDocument Processor
      • Block Types
  • Google Cloud Platform
    • Natural Language API
      • AnalyzeSyntax Processor
      • AnalyzeEntities Processor
      • AnalyzeSentiment Processor
      • AnalyzeEntitiesWithSentiment Processor
      • ClassifyText Processor
      • AnnotateText Processor
      • Entity Types
      • The Metadata Field
Powered by GitBook
On this page
  • Properties
  • Data Output

Was this helpful?

  1. Amazon Web Services
  2. Comprehend API

DetectSentiment Processor

Part of the AWS Processor package

PreviousEntity TypesNextDetectSyntax Processor

Last updated 5 years ago

Was this helpful?

This processor will take in input string and return the sentiment of the text. The sentiment can be thought of as the connotation of the message.

Properties

All of our Comprehend processors also include these .

This processor does not have any unique properties outside of the common ones.

Data Output

If the Destination property is set to flowfile-attribute, then the output of this processor will be routed to the FlowFile's nlp.Sentiment attribute, which will be created if it isn't present.

Field Name

Data Type

Description

sentiment

string (Sentiment)

The sentiment of the text

score

float

How confident the API is in its response

Sentiment

An enumeration that can take any one of the following values: POSITIVE, NEGATIVE, NEUTRAL, or MIXED.

{
	"raw-input": "Machine learning is very cool!",
	"output": {
		"sentiment": "POSITIVE",
		"score": 0.992412
	}
}

common properties