neulab / guided_summarization

GSum: A General Framework for Guided Neural Abstractive Summarization
MIT License
113 stars 27 forks source link

file2rouge problem #20

Closed gaozhiguang closed 3 years ago

gaozhiguang commented 3 years ago

Hi, when using file2rouge, i met this issue, do you konw how to fix it?

(testtransformers) [zggao@cu05 result]$ files2rouge test.hypo.tokenized test.target.tokenized Preparing documents... 0 line(s) ignored Running ROUGE... Traceback (most recent call last): File "/home/zggao/anaconda3/envs/testtransformers/bin/files2rouge", line 33, in sys.exit(load_entry_point('files2rouge==2.1.0', 'console_scripts', 'files2rouge')()) File "/home/zggao/anaconda3/envs/testtransformers/lib/python3.6/site-packages/files2rouge-2.1.0-py3.6.egg/files2rouge/files2rouge.py", line 105, in main args.stemming) File "/home/zggao/anaconda3/envs/testtransformers/lib/python3.6/site-packages/files2rouge-2.1.0-py3.6.egg/files2rouge/files2rouge.py", line 54, in run stemming=stemming) TypeError: init() got an unexpected keyword argument 'log_level'

gaozhiguang commented 3 years ago

before installing the files2rouge, we have to install a custom pyrouge, which is different from "pip install pyrouge"