ladderlore
  • Type a service name, like S3 or IAM.

Service · Machine Learning · Builds on AIF-C01

Amazon Comprehend

Built-in insights, custom classification and entity recognition, and real-time versus asynchronous use.

You know from AI Practitioner

  • Comprehend finds sentiment, entities, key phrases, language and PII in text.
  • It can learn your own categories from your data.
  • Use Transcribe first for audio and Textract first for scans.
Read the AI Practitioner lesson
  • Entities

    Use
    Built-in entity types
    Training
    None
  • Your own terms

    Use
    Custom entity recognition
    Training
    Your examples
  • Sentiment

    Use
    Per document or per entity
    Training
    None
  • Key phrases, language

    Use
    Built-in
    Training
    None
  • Personal data

    Use
    PII detection or redaction
    Training
    None
  • Your own categories

    Use
    Custom classification
    Training
    Your examples
Tasks and where training is needed.

1 / 2

  • Entities

    Use
    Built-in entity types
    Training
    None
  • Your own terms

    Use
    Custom entity recognition
    Training
    Your examples
  • Sentiment

    Use
    Per document or per entity
    Training
    None

2 / 2

  • Key phrases, language

    Use
    Built-in
    Training
    None
  • Personal data

    Use
    PII detection or redaction
    Training
    None
  • Your own categories

    Use
    Custom classification
    Training
    Your examples
Tasks and where training is needed.
  • Real-time, built-in

    Input
    One document or a small batch
    Best for
    Interactive apps
  • Real-time, custom

    Input
    Endpoint you create and pay for
    Best for
    Quick answers from a custom model
  • Async job

    Input
    Many files in S3
    Best for
    Large sets, no hurry
Three ways to run an analysis.

What it is

Built-in insights need no training: entities, sentiment (and targeted sentiment per entity), key phrases, dominant language, syntax and PII detection. An asynchronous PII job can also redact the personal data it finds.

Custom models cover your own labels. Custom classification sorts documents into your categories, for example support tickets by product. Custom entity recognition finds your own terms, such as part numbers or drug names. Both train from examples you provide, and they accept plain text and also images, PDFs and Word files. Flywheels manage retraining of a custom model over time.

What it is

There are two ways to run an analysis. Real-time: call the API for one document or a small batch and get the answer at once. For a custom model you create an endpoint, and you pay for it from the time it starts until you delete it. Asynchronous: start a job over many documents in Amazon S3 and receive results in S3. Use real-time for interactive apps and asynchronous jobs for large sets that can wait.

What it is

Status: topic modeling, event detection and prompt safety classification are closed to new customers since April 30, 2026. Accounts that used them in the last 12 months keep access. AWS suggests Amazon Bedrock for topics and events, and Bedrock Guardrails for prompt safety.

Remember

  • Built-in: entities, sentiment, key phrases, language, syntax and PII. No training.
  • Custom classification and custom entity recognition train on your examples.
  • A real-time endpoint for a custom model is billed while it exists.
  • Async jobs read from S3 and write to S3, for large sets.

Remember

  • Topic modeling, event detection and prompt safety are closed to new customers (since April 30, 2026).
  • Comprehend reads text. Run Transcribe or Textract first for audio or scans.

On the exam

  • “Label support tickets with company-specific categories” points to Comprehend custom classification.
  • “Find part numbers in free text” points to custom entity recognition.
  • “Analyze five million archived reviews, no hurry” points to an asynchronous job from S3.
  • “An app needs the sentiment of each chat message at once” points to a real-time call.