External APIs

Amazon Comprehend - Discover insights and relationships in text

Use natural language processing (NLP) to extract insights about the content of documents
without the need of any special preprocessing
Back to BLOCKS

About Amazon Comprehend - Discover insights and relationships in text

Amazon Comprehend provides Keyphrase Extraction, Sentiment Analysis, Entity Recognition, Topic Modeling, and Language Detection APIs so you can easily integrate natural language processing into your applications. You simply call the Amazon Comprehend APIs in your application and provide the location of the source document or text. The APIs will output entities, key phrases, sentiment, and language in a JSON format, which you can use in your application.

With Amazon Comprehend, you only pay for what you use. You are charged based on the amount of text processed.

Try it Now
Categories:
External APIs External APIs
External APIs
External APIs
Bots & AI
Bots & AI
Chat & Social
Chat & Social
Last Updated:
20180319 at 00:51:48
Author:
PubNub
Additional Links:
Amazon Comprehend

Walkthrough:

Begin by adding the AWS keys to the vault storage by using the MY SECRETS feature from within the blocks editor. The block will need the AWS_access_key and AWS_secret_key values.

This PubNub Functions listens for all chats  and allows to add comprehension even in private chats.

To trigger comprehension determination, event payload should contain 'comprehend' field in it with following keys:
  - location - name of key in event payload, which contain data for comprehension
  - language - code of language on which passed message has been written

Input:

{
	"data": {
		"text": "hello!",
		"comprehend": {
			"language": "en",
			"location": "text"
		}
	}
}

Output:

chatEngineInstsance.on('message', (payload) => {
    console.log(payload.data.sentiment) // will contain the payload with Amazon Comprehend data
});

Similar BLOCKS

Amazon Polly – Text-to-Speech Icon Amazon Polly – Text-to-Speech Turn text into lifelike speech using deep learning. External APIs BLOCKS Details Subcategory Bots & AI BLOCKS Details Subcategory Chat & Social BLOCKS Details Subcategory Amazon Translate – Natural and fluent language translation Icon Amazon Translate – Natural and fluent language translation Fast, high-quality, and affordable neural machine translation service. External APIs BLOCKS Details Subcategory Bots & AI BLOCKS Details Subcategory Chat & Social BLOCKS Details Subcategory