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

DetectSyntax Processor

Part of the AWS Processor package

PreviousDetectSentiment ProcessorNextTextract API

Last updated 5 years ago

Was this helpful?

This processor will take an input string and returns the different parts of speech present in the input text.

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.Syntax attribute, which will be created if it isn't present.

Field Name

Data Type

Description

tokens

array of Token

The list of tokens detected by the API

Token

Field Name

Data Type

Description

text

string

The raw text of the entity

score

float

How confident the API is in its response

beginOffset

int

The number of characters this entity is offset from the beginning of the input string

endOffset

int

The number of characters this entity's last character is offset from the beginning of the input string

{
	"raw-input": "...",
	"output": {
		"tokens": [
			{
				"score": 0.8516682,
				"beginOffset": 0,
				"endOffset": 4,
				"id": 1,
				"partOfSpeech": "NOUN",
				"text": "HOME"
			},
			{
				"score": 0.916234,
				"beginOffset": 5,
				"endOffset": 12,
				"id": 2,
				"partOfSpeech": "NOUN",
				"text": "THEATER"
			},
			// ... plus potentially many more entries!
		]
	}
}
common properties