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 when using RougeScorer #7

Closed
sarakolding opened this issue May 27, 2022 · 2 comments
Closed

TypeError when using RougeScorer #7

sarakolding opened this issue May 27, 2022 · 2 comments

Comments

@sarakolding
Copy link

When I try to run scorer = rouge_scorer.RougeScorer(['rouge1', 'rouge2', 'rougeL'], use_stemmer=True , lang='danish') I get the following error:
TypeError: __init__() got an unexpected keyword argument 'lang'

@abhik1505040
Copy link
Collaborator

abhik1505040 commented May 27, 2022

Hi, It looks like the multilingual_rouge_scoring package wasn't installed correctly. If you are installing the required dependencies from this page, make sure you execute this script via bash setup.sh first. Otherwise, reinstall the package using the commands mentioned here. This should fix the issue.

@sarakolding
Copy link
Author

That worked, thank you!

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