Amazon Comprehend
Hands-On
Demo

In this demo, we will:
- Create an IAM role for Amazon Comprehend
- Set up an S3 bucket and upload sample customer feedback data
- Run batch analysis jobs for large datasets
- Perform real-time sentiment analysis using the Comprehend console
- Extract key phrases and entities from customer feedback
- Detect language and syntax analysis
- Test the setup and analyze results
- Clean up resources
Agenda

Visual Representation
IAM Role

Create IAM Role

Add permissions

ComprehendDataAccessRolePolicy

ComprehendDemoRole
Name, review, and create

Review

Review
S3 Bucket

Create S3 bucket
comprehend-demo-910212

Object Ownership

Bucket Versioning

Default encryption
Sample Data

I absolutely love this product! The quality is amazing and delivery was super fast.
This item broke after just two days. Very disappointed with the purchase.
Great customer service team helped me resolve my issue quickly. Highly recommend!
The product description was misleading. Not what I expected at all.
Excellent value for money. Will definitely buy again from this company.
Shipping took forever and the package was damaged when it arrived.
Outstanding product quality! My whole family loves it.
Customer support was rude and unhelpful when I called for assistance.
Perfect! Exactly what I was looking for. Five stars!
Terrible experience. Product doesn't work as advertised.
feedback.txt

Upload

Upload

Upload succeeded
Amazon Comprehend

Create Batch Analysis Job

customer-feedback-entities
Create analysis job

Choose resources

Input data



Output data

Access permissions


customer-feedback-entities was submitted successfully

Real-time analysis

Input data
I absolutely love this product! The quality is amazing and delivery was super fast.

Insights

Key phrases


Language

Sentiment

Targeted sentiment


Application integration - 1

Application integration - 2

Example 2
John Smith from New York purchased the iPhone 14 Pro on December 15th, 2023, and paid $999 using his Visa credit card.

Entities

Este producto es increíble. This product is amazing. Ce produit est incroyable.
Language Detection


Bonjour, comment allez-vous aujourd'hui?


Hola, ¿cómo estás hoy?

Language

customer-feedback-entities job

Output

Output File

Clean Up

Empty

permanently delete
Empty Bucket

Delete the Bucket

comprehend-demo-910212
Delete Bucket

Delete IAM Role
🙏
Thanks
for
Watching
Amazon Comprehend - Hands-On Demo
By Deepak Dubey
Amazon Comprehend - Hands-On Demo
Amazon Comprehend - Hands-On Demo
- 7