evaluate icon indicating copy to clipboard operation
evaluate copied to clipboard

ImportError: To be able to use evaluate-metric/rouge, you need to install the following dependencies['nltk'] using 'pip install # Here to have a nice missing dependency error message early on' for instance'

Open shuxiaobo opened this issue 2 years ago • 4 comments

Hi everyone, I encount this error when the code init the rouge = evaluate.load('rouge') image But the pip have install the nltk image

Is it a bug or ??

shuxiaobo avatar Mar 23 '23 10:03 shuxiaobo

Did you try pip install rouge-score ? See this issue

sorgfresser avatar Mar 28 '23 15:03 sorgfresser

did you solve the problem?

BAEK26 avatar Mar 19 '24 11:03 BAEK26

facing issue in importing rouge metric. evaluate.load("rouge") Error calculating ROUGE scores: To be able to use evaluate-metric/rouge, you need to install the following dependencies['rouge_score', 'absl'] using 'pip install rouge_score # Here to have a nice missing dependency error message early on' for instance'. can anyone help me out?

Dineshreddy1910 avatar Oct 10 '24 13:10 Dineshreddy1910

I also encountered this error, but installing rouge-score into my environment was all I needed to do (other than installing evaluate, or course). I tried installing both with conda and with pip, and it worked both ways.

❯ conda list 'evaluate|rouge'
# packages in environment at <redacted>/env:
#
# Name                    Version                   Build  Channel
evaluate                  0.4.1              pyhd8ed1ab_0    conda-forge
rouge-score               0.1.2              pyhd8ed1ab_0    conda-forge

cohml avatar Oct 18 '24 18:10 cohml