Amazon Comprehend
APIAWS API for sentiment, entities, PII detection and text classification
- Access
- AWS credentials
About
AWS natural language service that detects sentiment, entities, key phrases, language, PII and toxic content, and trains custom classifiers and entity recognizers. Most features cover 12 languages; PII detection covers only English and Spanish.
What you can do with it
- Score reviews and support tickets as positive, negative, neutral or mixed
- Find names, addresses and card numbers in text and redact them in batch jobs
- Train a custom classifier to route documents or tickets by category
Get started
- Create an IAM user or role with Comprehend access
- Configure the AWS CLI with that profile and a supported region
Example
aws comprehend detect-sentiment \
--language-code en \
--text "It is raining today in Seattle." \
--region us-east-1
aws comprehend detect-pii-entities \
--language-code en \
--text "Hello Paul Santos. Your card 1111-0000-1111-0000 was mailed." \
--region us-east-1Details
- Hosting
- Hosted service
- Available in
- Worldwide
- Official SDKs
- Python, JavaScript/TypeScript, Java, Go, Ruby, PHP, C#, Kotlin, Rust, Swift
- MCP server
- None
- Works with
- AWS