github链接
- https://github.com/pltrdy/rouge
git clone https://github.com/pltrdy/rouge
cd rouge
python setup.py install
- 新建一个py文件进行测试
- 注意:不能命名为rouge,否则导入相同的模块会因重名而报错!
- 测试1(文本测试)
from rouge import Rouge hypothesis = "the #### transcript is a written version of each day 's cnn student news program use this transcript to he lp students with reading comprehension and vocabulary use the weekly newsquiz to test your knowledge of storie s you saw on cnn student news"reference =