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'
Hi everyone, I encount this error when the code init the
rouge = evaluate.load('rouge')
But the pip have install the nltk

Is it a bug or ??
Did you try pip install rouge-score ?
See this issue
did you solve the problem?
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?
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