Analyze text using Amazon Comprehend's real-time APIs for language detection, sentiment analysis, entity recognition, key phrase extraction, and PII detection.
https://docs.aws.amazon.com/comprehend/latest/dg/get-started-api.html
- ID: comprehend/getting-started
- Phase: create
- Complexity: beginner
- Core actions: comprehend:DetectSentiment, comprehend:DetectEntities, comprehend:DetectKeyPhrases
- Detects the dominant language of sample text
- Analyzes sentiment (positive, negative, neutral, mixed)
- Extracts named entities (people, organizations, dates)
- Extracts key phrases
- Detects PII entities (names, emails, phone numbers)
bash amazon-comprehend-gs.shNone. Comprehend is a stateless API.
- Run: ~5 seconds
Comprehend pricing is per unit (100 characters). This tutorial analyzes ~500 characters, costing less than $0.01.