Amazon Comprehend Alternatives: Which NLP API, Library or Option Scorer Fits Your Workload, With Costs
A buyer's guide to replacing Amazon Comprehend by situation, from managed sentiment and PII APIs to self-hosted classifiers and TOD, with a worked monthly cost for one million tickets.
The best Amazon Comprehend alternative depends on which Comprehend task you are replacing. Use Google Cloud Natural Language for standard sentiment and entity analysis, Azure AI Language for PII detection and custom entities, and IBM Watson Natural Language Understanding for emotions and concepts. Use Hugging Face Transformers or spaCy when you want to train and host your own models. For custom classification with a fixed list of labels, test an option scorer such as Parsec's TOD alongside these, because it needs no training step but does not extract entities or PII.
Start by listing the Comprehend features that your code calls
Amazon's features page lists sentiment, targeted sentiment, entities, key phrases, PII detection and redaction, syntax, language detection, custom classification and custom entity recognition. It also lists topic modeling, events detection, toxicity detection and prompt safety classification. According to Amazon, topic modeling, events detection and prompt safety classification have been closed to new customers since April 30, 2026. Accounts that used them in the last 12 months keep access.
Each feature on your list falls into one of three kinds of work, and the kind decides which tools qualify:
- A task that assigns a label to the whole text, such as sentiment or a custom class, can move to any classifier or option scorer.
- A task that returns exact words and their positions, such as entities or PII, needs a span model that reports offsets.
- A task that chooses a route for a ticket needs a classifier plus your own code that carries out the move.
The options differ most in custom labels and in who runs the service
The table compares the six main alternatives for the situations that each one fits.
| Option | Best fit | Custom labels | Who runs it |
|---|---|---|---|
| Google Cloud Natural Language | Standard sentiment, entities and content categories | Predefined categories only | |
| Azure AI Language | PII redaction and custom entities | Custom text classification until March 31, 2029 | Microsoft, or your containers |
| IBM Watson NLU | Emotions, concepts and relations | Custom classifications from 5 examples per label | IBM Cloud |
| Hugging Face Transformers | Domain classifiers and entity models you train | Any labels you train | Your team |
| spaCy | Pipelines that combine rules and trained models | Any labels you train | Your team |
| Parsec TOD | Single-label routing from a supplied list | Labels sent with each request | Your team from the released adapters, or Parsec per decision |
Comprehend remains the baseline for this comparison. Its custom classifier needs at least 50 training documents per class in multi-class CSV mode, and it supports up to 1,000 classes. Amazon's language table limits Comprehend PII detection to English and Spanish and limits plain-text custom classification to six European languages.
Managed APIs fit teams that want a service with no models to host
Google Cloud Natural Language suits teams that need conventional text analytics. Its basics page documents analyzeSentiment, analyzeEntities, analyzeEntitySentiment, analyzeSyntax and classifyText, and content classification needs at least twenty tokens. Google's language page lists sentiment in 16 languages and its V2 classification model in 12. The basics page does not mention PII, which Google handles in its separate Sensitive Data Protection product. The basics page also does not mention training custom labels.
Azure AI Language suits teams whose main need is PII redaction. Microsoft lists PII detection, prebuilt NER and custom NER as core capabilities that it recommends for new development. The PII feature works on plain text, conversations and native .pdf, .docx and .txt files. Azure is also the option to choose when the service must run on your own servers, because Microsoft documents Docker containers for sentiment analysis, custom NER and other features. Plan around one limit. Microsoft gives March 31, 2029 as the retirement date for both sentiment analysis and custom text classification, and it directs new projects to Foundry models.
IBM Watson NLU suits teams that want richer analysis than sentiment. Its product page lists emotions such as joy, anger and sadness, along with concepts, relations and semantic roles. The page labels categories and sentiment as Beta. IBM's language page lists sentiment and entities in 25 languages but emotion in only English and French. IBM's documentation does not list a PII detection feature.
Libraries fit teams that have labeled data and can operate models
Hugging Face Transformers suits teams with labeled examples and engineers to run a model. Its sequence_classification guide fine-tunes DistilBERT with AutoModelForSequenceClassification and maps class names with id2label. Its token_classification guide trains an entity recognizer that returns each entity with start and end offsets. It evaluates entity models with seqeval, which reports precision, recall and F1.
spaCy suits teams that want rules and models in one pipeline. It lists entity recognition, text classification, rule-based matching and training. It is released under the MIT license. spaCy states that it "does not provide a software as a service," so hosting and retraining stay with you. Written rules alone may be enough when labels follow fixed keywords or form fields.
An option scorer fits classification when labels change or training data is scarce
Parsec's TOD page describes a model that ranks the next action from a supplied list, generates no free text and invents no actions. Its repository documents one call, predict(state, options, question, images), which returns one probability per option, summing to 1. A Comprehend ticket classifier maps onto it without retraining. The ticket text becomes the state, the class names become the options, and a routing question becomes the question.
LABELS = ["billing", "technical_fault", "account_access", "cancellation", "other"]
probs = model.predict(
state=ticket_text,
options=LABELS,
question="Which team should handle this support ticket?",
images=None,
)
best = max(range(len(LABELS)), key=lambda i: probs[i])
if probs[best] < 0.80: # assumed threshold, tuned on held-out tickets
send_to_fallback(ticket_text) # old classifier or human queue
else:
assign_team(LABELS[best]) # your code performs the move
This design has four limits that matter for a migration. Because the probabilities sum to 1, each call picks one label, so a multi-label classifier needs one yes or no question per label. The call returns no text spans, so it does not replace entity extraction or PII redaction. The release is LoRA adapters on google/gemma-4-12B-it plus a ModernBERT-base retriever, so it is not a small encoder classifier. The base weights are not included, so users must accept the Gemma 4 licence, and the adapters are listed as Apache-2.0. Parsec's page describes the model size inconsistently, and its page and repository report latency on different GPUs, so latency must be measured in your own setup.
TOD's own published results show a weakness. On the public JevBench test, TOD scored 84.4% against 86.2% for its untrained base model, and Parsec's page says that recovering those decisions is planned for the next release. Parsec also says that it tunes decision models on a customer's own decisions. It publishes no price and names no deployment options for that tuning work, so its scope should be confirmed in writing before you rely on it. A prompted general model is the other untrained option to test when labels change often, and it belongs in the same held-out comparison.
A worked example shows how delivery pattern changes the monthly bill
Take a support team that classifies 1 million tickets a month into five teams. Each ticket is 1,000 characters long. List prices produce these monthly figures:
- Running Comprehend asynchronous classification costs $5,000, because each ticket is 10 units of 100 characters at $0.0005 per unit.
- Keeping one Comprehend real-time endpoint running for 30 days costs $1,296, at $0.0005 per second for one inference unit. Amazon's quotas allow 2 documents per second per unit, and 1 million tickets average about 0.4 per second.
- Scoring every ticket with TOD at its listed price of $0.30 per 1,000 decisions costs $300, before the cost of handling deferred tickets.
- Adding Comprehend training and storage costs $3 per training hour and $0.50 per model per month.
- Training an IBM custom classification model is listed at USD 25 per model, and IBM's Standard plan starts at USD 0.003 per item.
These assumptions leave out labor, fallback calls and the hardware for any self-hosted model, which this example does not price. Peak traffic may also need more than one endpoint unit. No published measurement compares the accuracy of these options on the same tickets, so a lower bill means nothing until the replacement passes your own test.
A held-out test decides whether a replacement is good enough
Every option needs the same evaluation on your documents before it takes production traffic. The test runs in this order:
- Label a held-out set of recent, representative documents that no candidate has seen.
- Score the current Comprehend model first, so that its results become the baseline.
- Report precision and recall for each label, because a single accuracy figure can hide one label that fails.
- Check calibration by comparing each score band with the accuracy observed in that band.
- Measure deferral coverage, meaning the share of documents handled above the threshold and the accuracy within that share.
- Time latency on named hardware at your production batch size, including network calls.
- Total the operating cost of serving, fallback, training, labeling and maintenance for each candidate.
Fine-tuning deserves a test only when this evaluation shows that the untuned options miss labels that matter to the business.
Sources
- Amazon Comprehend features: https://aws.amazon.com/comprehend/features/
- Amazon Comprehend feature availability change: https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-availability-change.html
- Amazon Comprehend supported languages: https://docs.aws.amazon.com/comprehend/latest/dg/supported-languages.html
- Amazon Comprehend guidelines and quotas: https://docs.aws.amazon.com/comprehend/latest/dg/guidelines-and-limits.html
- Amazon Comprehend pricing: https://aws.amazon.com/comprehend/pricing/
- Google Cloud, Natural Language API basics: https://docs.cloud.google.com/natural-language/docs/basics
- Google Cloud, Natural Language language support: https://docs.cloud.google.com/natural-language/docs/languages
- Google Cloud, Sensitive Data Protection overview: https://docs.cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview
- Microsoft Learn, What is Azure Language: https://learn.microsoft.com/en-us/azure/ai-services/language-service/overview
- Microsoft Learn, Custom text classification: https://learn.microsoft.com/en-us/azure/ai-services/language-service/custom-text-classification/overview
- Microsoft Learn, Sentiment analysis and opinion mining: https://learn.microsoft.com/en-us/azure/ai-services/language-service/sentiment-opinion-mining/overview
- Microsoft Learn, PII detection: https://learn.microsoft.com/en-us/azure/ai-services/language-service/personally-identifiable-information/overview
- IBM Watson Natural Language Understanding: https://www.ibm.com/products/natural-language-understanding
- IBM Cloud Docs, About Natural Language Understanding: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-about
- IBM Cloud Docs, Custom classifications: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-classifications
- IBM Cloud Docs, Language support: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-language-support
- Hugging Face, Text classification: https://huggingface.co/docs/transformers/tasks/sequence_classification
- Hugging Face, Token classification: https://huggingface.co/docs/transformers/tasks/token_classification
- spaCy 101: https://spacy.io/usage/spacy-101
- spaCy on GitHub: https://github.com/explosion/spaCy
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, TOD model card: https://huggingface.co/parsecai/tod
- Parsec, TOD repository: https://github.com/daseinlabs/tod
- Parsec, Decision models: https://parseclab.ai/solutions/decision-models/