unbabel-comet
High-quality Machine Translation Evaluation
What it is and what it does
unbabel-comet is a neural machine translation evaluation framework that scores translation quality using deep learning models trained on human assessments. It offers three evaluation modes: reference-based scoring (comparing translations to gold references), reference-free scoring (assessing translations without references), and explainable scoring (XCOMET models that identify error spans and classify them by severity according to MQM typology). The package includes CLI tools for batch scoring, system comparison with statistical significance testing, and Minimum Bayes Risk decoding for selecting best translations from candidate lists.
The framework depends on PyTorch, Hugging Face Transformers, and PyTorch Lightning, making it suitable for research and production environments where neural metric evaluation is needed. It supports document-level context through DocCOMET, enabling better handling of discourse phenomena and chat translation. Multiple pre-trained models are available via Hugging Face Hub, ranging from lightweight reference-free variants to large explainable models with billions of parameters.
Use it for:
- Evaluate machine translation system outputs during development and benchmarking against reference translations
- Score translations without references using quality-estimation models for deployment scenarios where gold references are unavailable
- Identify and classify specific translation errors (minor, major, critical) using XCOMET models for error analysis and system improvement
- Compare multiple MT systems with statistical significance testing to determine which performs best
- Rank and select best translations from candidate pools using Minimum Bayes Risk decoding for quality-aware decoding
- Evaluate document-level translation quality using context-aware DocCOMET models for improved accuracy on discourse phenomena
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Evaluates machine translation quality using neural metrics, scoring translations against references or without references, and explaining error types according to MQM typology.
Yes. Active maintenance, permissive Apache-2.0 license, low install friction, no known vulnerabilities, and substantial community adoption (774 stars, top 15000 tier). The package is production-ready for MT evaluation workflows. Install if you need neural metric evaluation; skip if you require only lightweight statistical metrics like BLEU.
Install
unbabel-comet on PyPI
pip
pip install unbabel-cometuv
uv add unbabel-cometpoetry
poetry add unbabel-cometInstalling unbabel-comet
Before you install
Low friction installation via wheel distribution. Active maintenance with recent commits; 774 repository stars. Depends on 13 runtime packages including torch, transformers, and pytorch-lightning, which are substantial but standard for ML workflows.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most deployment scenarios.
Quickstart
pip install unbabel-comet
comet-score -s src.txt -t hyp.txt -r ref.txt
# Or in Python:
from comet import load_from_checkpoint
model = load_from_checkpoint("Unbabel/wmt22-comet-da")
scores = model.predict(data, batch_size=8)
Requires Python 3.8 or above. Some models (e.g., Unbabel/wmt22-cometkiwi-da) require Hugging Face Hub authentication and license acknowledgment.
Verify before relying
- Whether GPU acceleration is required or CPU-only scoring is practical for typical workloads
- Specific accuracy/correlation metrics compared to other MT evaluation frameworks
- Whether document-level context (DocCOMET) improves results for your language pair and domain
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4.0.0,>=3.8.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 13 — entmax, huggingface-hub, jsonargparse, numpy, pandas, protobuf, pytorch-lightning, sacrebleu, scipy, sentencepiece, torch, torchmetrics, transformers |
| Maintenance | actively maintained — 347 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 96,453/month — #13,210 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: unbabel_comet-2.2.7-py3-none-any.whl
Keywords: Machine Translation, Evaluation, Unbabel, COMET
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
dtlpymetricsCalculates and generates quality scores for…
unclear · top 15,000 on PyPI
rougeComputes ROUGE scores (Recall-Oriented…
unclear · top 5,000 on PyPI
sacrebleuSacreBLEU computes BLEU, chrF, and TER scores…
permissive · top 5,000 on PyPI
rouge-chineseComputes ROUGE evaluation metrics for Chinese…
unclear · top 15,000 on PyPI
texterrorsScores automatic speech recognition or…
permissive · top 5,000 on PyPI
bert-scoreBERTScore computes automatic evaluation metrics…
permissive · top 15,000 on PyPI
comet-mlComet ML is an experiment tracking and logging…
permissive · top 15,000 on PyPI
rouge-metricComputes ROUGE metrics (ROUGE-N, ROUGE-L,…
permissive · top 15,000 on PyPI
cleanlab-tlmCleanlab TLM scores the trustworthiness of LLM…
permissive · top 15,000 on PyPI
rouge-scoreComputes ROUGE scores (ROUGE-N, ROUGE-L,…
permissive · top 5,000 on PyPI