Amazon Comprehend

Amazon Comprehend is a managed natural-language processing (NLP) service that extracts insights from unstructured text. It exposes task-specific APIs — entity recognition, sentiment, key phrases, syntax, language detection, topic modeling, and PII redaction — without requiring ML expertise or model training.


Key Features:


Common Use Cases:


Example: Detect Sentiment and Entities


import boto3

comprehend = boto3.client("comprehend", region_name="us-west-2")
text = "Order #A-482 shipped from Seattle on Tuesday and arrived damaged."

print(comprehend.detect_sentiment(Text=text, LanguageCode="en")["Sentiment"])
# NEGATIVE

for ent in comprehend.detect_entities(Text=text, LanguageCode="en")["Entities"]:
    print(ent["Type"], "->", ent["Text"])
# COMMERCIAL_ITEM -> Order #A-482
# LOCATION        -> Seattle
# DATE            -> Tuesday
  

Comprehend complements Bedrock and SageMaker by handling the well-defined NLP primitives that many applications need — reach for it before training a custom model when a task-specific API will do.