Amazon Comprehend (NLP)
This component analyzes text and extracts detected languages, entities, key phrases and sentiments. This component uses the Amazon Comprehend.
How to Add the Amazon Comprehend NLP Component
- Navigate to the AutoClassifier Pipelines component page.
- Click New Component and select Amazon Comprehend NLP from the component list:
- Name your new Amazon Comprehend NLP component and click Add
- Click Apply to save your changes.
-
Ensure your new Amazon Comprehend NLP component is placed in the list of existing pipeline stages.
How to Configure the Amazon Comprehend NLP Component
To configure your Amazon Comprehend NLP component, select it from the components list and complete the following fields in the Configuration section:
Credentials can be provided one of two ways:
-
Enter AWS Credentials file and AWS Region
-
Directly provide API Key and API secret
- If you check Use Credentials file to use a credentials file, specify the following:
- Credentials file location:
Enter the location of AWS Credential file.
For example, C:\Users\Luca\Desktop\credentials.txt
Example AWS Credentials File
Copy[{profilename}]
aws_access_key_id = {accessKey}
aws_secret_access_key = {secretKey} - Credentials Profile Name: Enter AWS Profile Name for the Credentials File.
- Credentials file location:
Enter the location of AWS Credential file.
For example, C:\Users\Luca\Desktop\credentials.txt
- If you did not check Use Credentials file to use a credentials file, specify the following:
- Api Key: Setup your Amazon Comprehend instance, obtain an API key, and enter your key into this field.
- Api Secret: Enter the API Secret of your Amazon Comprehend instance.
- Api Key: Setup your Amazon Comprehend instance, obtain an API key, and enter your key into this field.
- Amazon Web Service Region: Select the region of your Amazon Web Service from the drop-down list. The supported Regions for Amazon Comprehend are documented here.
- Input Property: Enter the property that is configured for entity extraction. The default value for this field is 'body'.
- Extract Languages: Enable this checkbox to extract and output the languages that are detected in the current document.
- Language score threshold: Specify a value between 0 and 1 that represents the minimum confidence score accepted for a detected language.
- Use detected language: Enable this checkbox to use the detected language with the highest confidence to analyze the text for entities, key phrases, or sentiments.
- Default Language: From the drop-down list, select the predefined language that is used to analyze the text if no other detected language is found.
- Extract entities: Enable this checkbox to detect entities in the input text.
- Entities score threshold: Enter a value between 0 and 1.
- Entities “No. of Matches” threshold: Specify the minimum number of occurrences for a given entity to be included in the output results.
- Maximum Entities: Specify the maximum number of entities to return. Results will be returned by occurrence.
- Extract key phrases: Enable this checkbox to detect key phrases in the input text.
- Key Phrase score threshold: Enter a value between 0 and 1.
- Key Phrase “No. of Matches” threshold: Specify the minimum number of occurrences for a given entity to be included in the output results.
- Maximum Key Phrases: Specify the maximum number of key phrases to return. Results will be returned by occurrence.
- Extract sentiments: Enable this checkbox to analyze the input text to determine whether it contains negative or a positive content.
- Send raw response as metadata: Enable this checkbox 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 |
|