pycocoevalcap
MS-COCO Caption Evaluation for Python 3
What it is and what it does
Pycocoevalcap is a Python 3 port of the original MS COCO caption evaluation toolkit, providing five automatic metrics for assessing the quality of machine-generated image captions. It wraps evaluation algorithms (BLEU, METEOR, ROUGE-L, CIDEr, and SPICE) that compare generated captions to reference captions, producing scores that measure different aspects of caption quality—fluency, semantic similarity, and semantic propositional content.
The package depends on pycocotools for the COCO API and requires Java 1.8.0 for some components. SPICE evaluation automatically downloads Stanford CoreNLP on first use and caches parsed sentences to speed up repeated evaluations. The package is stable but dormant; it has not been updated since its initial release in November 2020, though the repository remains accessible and the underlying evaluation metrics are well-established in the computer vision and NLP research communities.
Use it for:
- Benchmark image captioning models against MS COCO dataset using standardized evaluation metrics.
- Compare multiple caption generation systems with consistent, reproducible scores.
- Validate caption quality during model development and hyperparameter tuning.
- Generate evaluation reports for research papers using established COCO evaluation protocols.
- Integrate caption evaluation into automated testing pipelines for vision-language models.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Evaluates image captions using multiple automatic metrics (BLEU, METEOR, ROUGE-L, CIDEr, SPICE) designed for the MS COCO dataset, providing Python 3 support for caption generation assessment.
Yes, if you are evaluating captions on the MS COCO dataset or need the specific metrics this package provides. The low install friction, stable API, and absence of known vulnerabilities make it reliable for established evaluation workflows. However, verify the license terms first, and be aware that the package is dormant—no updates are expected, and you should confirm that all five metrics work correctly in your environment, particularly SPICE's Java and CoreNLP dependencies.
Install
pycocoevalcap on PyPI
pip
pip install pycocoevalcapuv
uv add pycocoevalcappoetry
poetry add pycocoevalcapInstalling pycocoevalcap
Before you install
Low install friction with a single runtime dependency (pycocotools). The package is dormant—last release was 2020-11-18 and no updates since, though the repository remains active with recent commits (2024-08-01). Suitable for stable evaluation workflows but not for ongoing feature development.
License in practice
License status is unclear; no SPDX identifier or raw license text is provided. Verify the actual license terms in the repository before using in proprietary or restricted contexts.
Quickstart
pip install pycocoevalcap
from pycocoevalcap.eval import COCOEvalCap
coco_eval = COCOEvalCap(coco, coco_result)
coco_eval.evaluate()
Java 1.8.0 is required; SPICE metric will automatically download Stanford CoreNLP 3.6.0 on first use.
Verify before relying
- Whether the package's license is compatible with your intended use (license treatment is unclear).
- Current state of SPICE's Stanford CoreNLP download and cache behavior in modern environments.
- Whether all five metrics (BLEU, METEOR, ROUGE-L, CIDEr, SPICE) are equally maintained and reliable.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pycocotools |
| Maintenance | dormant — 2,095 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,013,087/month — #4,509 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pycocoevalcap-1.2-py3-none-any.whl
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
pycocotoolsProvides Python APIs for loading, parsing, and…
unclear · top 5,000 on PyPI
rouge-chineseComputes ROUGE evaluation metrics for Chinese…
unclear · top 15,000 on PyPI
faster-coco-evalFaster-COCO-Eval provides a high-performance…
unclear · top 15,000 on PyPI
rouge-metricComputes ROUGE metrics (ROUGE-N, ROUGE-L,…
permissive · top 15,000 on PyPI
clip-benchmarkEvaluates CLIP-like vision-language models on…
permissive · top 15,000 on PyPI
rougeComputes ROUGE scores (Recall-Oriented…
unclear · top 5,000 on PyPI
rouge-scoreComputes ROUGE scores (ROUGE-N, ROUGE-L,…
permissive · top 5,000 on PyPI
sacrebleuSacreBLEU computes BLEU, chrF, and TER scores…
permissive · top 5,000 on PyPI
rf100vlProvides programmatic access to RF100-VL, a…
permissive · top 15,000 on PyPI
country-converterConverts and matches country names across…
copyleft · top 5,000 on PyPI