Amazon Comprehend (NLP)

This component analyzes text and extracts detected languages, entities, key phrases and sentiments.

This component uses the Amazon Comprehend.

How to Configure the Amazon Comprehend Component

To configure this component, use the following image and steps:

Credentials can be provided one of two ways:

  • Enter AWS Credentials file and AWS Region

  • Directly provide API Key and API secret

  1. Check Use Credentials file to use a credentials file


  2. AWS Credentials file location:
    1. Enter the location of AWS Credential file.
    2. ExampleC:\Users\Luca\Desktop\credentials.txt

      Example AWS Credentials File

      Copy
      [{profilename}]
      aws_access_key_id = {accessKey}
      aws_secret_access_key = {secretKey}

  3. Credentials Profile Name:
    1. Enter AWS Profile Name for the Credentials File
      or
    2. Use API Key and Secret Access Key directly.

  4. Api Key:
    1. Setup your Amazon Comprehend, obtain an API key, and enter your key into this field.
  5. Api Secret
    1. Enter API Secret
  6. Amazon Web Service Region
    1. Select the Region of your Amazon Web Service
    2. The supported Regions for Amazon Comprehend are documented here.
  7. Input Property:
    • Property configured for entity extraction.
    • Default value: 'body'
  8. Extract Languages:
    1. Click to extract and output the languages that are detected in the current document.
  9. Language score threshold:
    1. Specify a value between 0 and 1 that represents the minimum confidence score accepted for a detected language.
  10. Use detected language:
    1. Click to use the detected language with the highest confidence to analyze the text for entities, key phrases, or sentiments.
  11. Default Language:
    1. Specify the predefined language that is used to analyze the text in case no other detected language is found.
  12. Extract entities:
    1. Click to detect entities in the input text.
  13. Entities score threshold
    1. Enter a value between 0 and 1.
  14. Entities “No. of Matches” threshold:
    1. Specify the minimum number of occurrences for a given entity to be included in the output results.
  15. Maximum Entities:
    1. Enter maximum number of entities to return. 
    2. Results will be returned by occurrence.
  16. Extract key phrases:
    1. Click to detect key phrases in the input text.
  17. Key Phrase score threshold:
    1. Enter a value between 0 and 1. 
  18. Key Phrase “No. of Matches” threshold:
    1. Specify the minimum number of occurrences for a given entity to be included in the output results.
  19. Maximum Key Phrases:  
    1. Enter maximum number of key phrases to return. 
    2. Results will be returned by occurrence.
  20. Extract sentiments:
    1. Click to analyze the input text to determine whether it contains negative or a positive content. 
  21. Send raw response as metadata:
    1. Click to attach the JSON file response represented all analyzed results.

Output Properties

Property

Type

AmazonExtractedLanguages

Text – Multi

AmazonExtractedEntities

Text – Multi

AmazonExtractedPhrases Text – Multi
AmazonExtractedSentiment Text
AmazonRawResponse Text
ComprehendSerializedEntitiesJson