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

Import error due to rouge library #4

Open
ogencoglu opened this issue Sep 4, 2023 · 0 comments
Open

Import error due to rouge library #4

ogencoglu opened this issue Sep 4, 2023 · 0 comments

Comments

@ogencoglu
Copy link

from string2string.metrics import sacreBLEU

raises the error:

File ~/my_dir/lib/python3.9/site-packages/string2string/metrics/rouge.py:8
      1 """
      2     This module contains a wrapper class for the ROUGE metric.
      3 
      4     ROUGE (Recall-Oriented Understudy for Gisting Evaluation) is a set of metrics for evaluating the quality of summaries in machine translation, text summarization, and other natural language generation tasks.
      5 """
      7 from typing import Union, List, Dict
----> 8 from rouge_score import rouge_scorer
      9 from rouge_score.scoring import BootstrapAggregator
     10 from string2string.misc.default_tokenizer import Tokenizer

ModuleNotFoundError: No module named 'rouge_score'

Are the requirements up-to-date?

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

1 participant