Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: __init__() got an unexpected keyword argument 'log_level' #49

Closed
gaozhiguang opened this issue Jun 23, 2021 · 2 comments
Closed

Comments

@gaozhiguang
Copy link

Hi, thanks for the nice work.
when i use the files2rouge, i met this issue:

(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'

@pltrdy
Copy link
Owner

pltrdy commented Jul 8, 2021

Hi, sorry for the delay.

I think this issue is related to Pyrouge, we actually use a fork instead of the main package.
You should be able to fix it with:

pip install -U git+https://github.com/pltrdy/pyrouge

(Tell me if it's not ok I'll reopen the issue)

@pltrdy pltrdy closed this as completed Jul 8, 2021
@1029694141
Copy link

it's not working #

Hi, sorry for the delay.

I think this issue is related to Pyrouge, we actually use a fork instead of the main package. You should be able to fix it with:

pip install -U git+https://github.com/pltrdy/pyrouge

(Tell me if it's not ok I'll reopen the issue)

it's not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants