A Python implementation of ROUGE score specifically designed for Chinese text evaluation. It supports both character-level and word-level ROUGE-1, ROUGE-2, and ROUGE-L metrics. Version 1.0.3 is the latest, with no recent updates (last release likely 2021).
pip install rouge-chineseVerified import paths — ran on the pinned version, not inferred.
Basic usage computing ROUGE scores for Chinese text.
Use 'from rouge_chinese import Rouge' instead of 'import rouge'.
Access scores via scores[0]['rouge-1']['f'] and similar.
Consider pinning dependencies (jieba==0.42.1) or switching to 'rouge' library with proper Chinese tokenization.
Install rouge-chinese and import as 'from rouge_chinese import Rouge'.
Call as 'rouge.get_scores(hypotheses, references)' with two lists.
Install jieba: 'pip install jieba'.