rouge
Full Python ROUGE Score Implementation (not a wrapper)
What it is and what it does
Rouge is a pure Python implementation of the ROUGE metric, a standard evaluation framework for text summarization. It computes precision, recall, and F1 scores across ROUGE-1 (unigram), ROUGE-2 (bigram), and ROUGE-L (longest common subsequence) variants to quantify how well a generated summary matches reference text. The package works both as a command-line tool and as a library, accepting single sentences, multiple sentence pairs, or entire files for batch scoring.
The implementation is independent from the official ROUGE-155 script, so results may differ slightly. It depends only on six and installs with low friction. The codebase is dormant (last release July 2021), so it receives no active maintenance, though the repository remains unarchived and the code is stable for existing use cases.
Use it for:
- Evaluate abstractive text summarization models by comparing generated summaries to human-written references
- Batch-score multiple hypothesis-reference pairs from files to assess summarization system performance
- Integrate ROUGE scoring into NLP evaluation pipelines for research or production summarization systems
- Command-line scoring of individual text pairs without writing Python code
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Computes ROUGE scores (Recall-Oriented Understudy for Gisting Evaluation) to measure text summarization quality by comparing generated text against reference text.
Yes, if you need ROUGE scoring for summarization evaluation and can accept dormant maintenance. The package is lightweight, has no known vulnerabilities, and works reliably for its stated purpose. However, verify that slight differences from official ROUGE-155 are acceptable for your use case, and be aware that no updates are forthcoming—use it as a stable tool, not one under active development.
Install
rouge on PyPI
pip
pip install rougeuv
uv add rougepoetry
poetry add rougeInstalling rouge
Before you install
Low friction: pure Python wheel with a single dependency (six). Maintenance is dormant—last release was 2021-07-20 and no commits since 2024-11-19—so expect no active bug fixes or feature updates.
License in practice
License treatment is unclear: the package references LICENCE.txt but provides no SPDX identifier. Review the repository's license file before adopting in proprietary or license-sensitive contexts.
Quickstart
pip install rouge
from rouge import Rouge
rouge = Rouge()
scores = rouge.get_scores(
"generated summary text",
"reference summary text"
)
print(scores)
Verify before relying
- How closely results match the official ROUGE-155 implementation beyond the acknowledged slight differences mentioned in the repository
- Whether the package is actively maintained or if dormancy poses risks for new Python versions or dependencies
Package facts
| License | LICENCE.txt (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — six |
| Maintenance | dormant — 1,851 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 898,402/month — #4,781 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rouge-1.0.1-py3-none-any.whl
Keywords: NL, CL, natural language processing, computational linguistics, summarization
Tags
More Linguistic packages
Detects and normalizes text encoding from…
permissive · top 100 on PyPI
tiktokentiktoken is a fast BPE tokenizer that converts…
permissive · top 1,000 on PyPI
chardetDetects character encoding and language in byte…
permissive · top 1,000 on PyPI
text-unidecodeConverts Unicode text to ASCII by…
copyleft · top 1,000 on PyPI
larkLark is a parsing library that builds abstract…
permissive · top 1,000 on PyPI
tree-sitterPython bindings to the tree-sitter parsing…
permissive · top 1,000 on PyPI
rouge-chineseComputes ROUGE evaluation metrics for Chinese…
unclear · top 15,000 on PyPI
rouge-metricComputes ROUGE metrics (ROUGE-N, ROUGE-L,…
permissive · top 15,000 on PyPI
textstatTextstat calculates readability and complexity…
permissive · top 5,000 on PyPI
unbabel-cometEvaluates machine translation quality using…
permissive · top 15,000 on PyPI
rouge-scoreComputes ROUGE scores (ROUGE-N, ROUGE-L,…
permissive · top 5,000 on PyPI
dtlpymetricsCalculates and generates quality scores for…
unclear · top 15,000 on PyPI
pycocoevalcapEvaluates image captions using multiple…
unclear · top 5,000 on PyPI
seqevalseqeval evaluates the performance of sequence…
permissive · 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