rouge-chinese
Python ROUGE Score Implementation for Chinese Language Task (official rouge score)
What it is and what it does
Rouge-Chinese is a Python library that calculates ROUGE evaluation scores specifically for Chinese-language NLP tasks. It addresses known limitations in the original ROUGE implementation when applied to Chinese text: incorrect sentence segmentation (missing Chinese punctuation marks), excessive memory consumption during longest-common-subsequence calculation, and inaccurate scores due to approximation methods. The library improves sentence splitting to recognize Chinese punctuation, optimizes memory usage by computing sequence lengths without generating the sequences themselves, and computes official ROUGE scores rather than approximate variants.
The package provides three main interfaces: a library API for scoring single or multiple sentence pairs with optional averaging, a file-based API for batch scoring line-by-line from text files, and a command-line tool for ad-hoc scoring. It depends only on six and requires external word segmentation to tokenize Chinese text before scoring. Output includes precision, recall, and F1 scores for ROUGE-1, ROUGE-2, and ROUGE-L metrics.
Use it for:
- Evaluate machine-generated Chinese text summaries against reference summaries in NLP research or production systems.
- Batch-score multiple hypothesis-reference pairs from files to assess summarization model performance across datasets.
- Compare Chinese abstractive or extractive summarization outputs in academic papers or model benchmarking.
- Integrate into Chinese NLP pipelines where ROUGE metrics are required for quality assurance or model selection.
- Command-line scoring of individual Chinese text pairs without writing Python code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Computes ROUGE evaluation metrics for Chinese text summarization and NLP tasks, handling Chinese punctuation and sentence segmentation correctly.
Yes, if you need ROUGE metrics for Chinese text and can tolerate dormant maintenance. The package solves real problems in the original ROUGE for Chinese, has low install friction, and no known vulnerabilities. However, verify that the unclear license aligns with your use case, and confirm compatibility with your Python version since support is unspecified. Consider it stable for evaluation tasks but not actively developed.
Install
rouge-chinese on PyPI
pip
pip install rouge-chineseuv
uv add rouge-chinesepoetry
poetry add rouge-chineseInstalling rouge-chinese
Before you install
Low friction: pure Python wheel with a single runtime dependency (six). Dormant since first release with no updates, though the repository remains active with 114 stars.
License in practice
License treatment is unclear—the package references LICENCE.txt but provides no SPDX identifier. Review the license file in the repository before adopting in proprietary or restricted contexts.
Quickstart
pip install rouge-chinese
from rouge_chinese import Rouge
rouge = Rouge()
scores = rouge.get_scores(hypothesis, reference)
Requires external word segmentation to tokenize Chinese text before scoring; the package itself does not include tokenization.
Verify before relying
- Whether the package works correctly with modern Python versions (python_support is unspecified in metadata)
- Current state of the single runtime dependency (six) and its long-term maintenance status
- Whether memory optimizations claimed in the description remain effective with contemporary hardware and text sizes
Package facts
| License | LICENCE.txt (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — six |
| Maintenance | dormant — 1,426 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 81,338/month — #14,236 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rouge_chinese-1.0.3-py3-none-any.whl
Keywords: NL, CL, natural language processing, computational linguistics, summarization, chinese
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
rougeComputes ROUGE scores (Recall-Oriented…
unclear · top 5,000 on PyPI
rouge-metricComputes ROUGE metrics (ROUGE-N, ROUGE-L,…
permissive · top 15,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
pycocoevalcapEvaluates image captions using multiple…
unclear · top 5,000 on PyPI
jiebaJieba segments Chinese text into words using…
permissive · top 5,000 on PyPI
sacrebleuSacreBLEU computes BLEU, chrF, and TER scores…
permissive · top 5,000 on PyPI
bert-scoreBERTScore computes automatic evaluation metrics…
permissive · top 15,000 on PyPI
jieba3kPerforms Chinese word segmentation, breaking…
unclear · top 15,000 on PyPI
seqevalseqeval evaluates the performance of sequence…
permissive · top 15,000 on PyPI