High-quality Machine Translation Evaluation library using neural models. Version 2.2.7. Active development on GitHub, with minor releases every few months.
pip install unbabel-cometNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Load a COMET model and score translation pairs.
Ensure each dict contains 'src' and 'mt' keys (and 'ref' if required).
Set environment variable COMET_CACHE_DIR to a custom path.
Upgrade to v2.2.6+ for consistent half-precision behavior.
Check model documentation to confirm training support.
Ensure each sample dict has 'src' and 'mt' keys.
Check internet connection or set HF_HUB_OFFLINE=1 to use cached models.
Use 'from comet import download_model' instead of 'from comet.models import download_model'.