Open StudentbyTheSea opened 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代碼裏?謝謝!
我有一段能只能評測英文的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代碼裏?謝謝!