JialeGuo / py_rouge_zh

A full Python implementation of the ROUGE metric, especially for Chinese texts processing.
Apache License 2.0
17 stars 4 forks source link

你好,我想應用您的代碼,請問怎樣修改 #2

Open StudentbyTheSea opened 3 years ago

StudentbyTheSea commented 3 years ago

我有一段能只能評測英文的ROUGE,使用如下:

r = Rouge155() r.system_dir = 'path/to/system_summaries' r.model_dir = 'path/to/model_summaries' r.system_filename_pattern = '(\d+)_decode.txt' r.model_filename_pattern = '[A-Z].#ID#_reference.txt' output = r.convert_and_evaluate()

我看了你的代碼,在傳入摘要和參考時和原代碼不同,請問怎樣能把您的代碼用在原來的ROUGE代碼裏?謝謝!