huggingface / evaluate

🤗 Evaluate: A library for easily evaluating machine learning models and datasets.
https://huggingface.co/docs/evaluate
Apache License 2.0
1.9k stars 235 forks source link

Fix wrong lib name in ImportError mesage #577

Open milistu opened 3 months ago

milistu commented 3 months ago

Summary

This PR addresses an issue encountered during the setup of the rouge metric via the evaluate library.

After attempting to load rouge with rouge = evaluate.load("rouge");, I was prompted to install additional dependencies (nltk, rouge_score, absl). However, an error occurred while trying to install absl, revealing a misnaming issue in the installation process.

This PR corrects the library name to absl-py, which is the correct identifier for pip installations.
Additionally, this PR applies code styling to various files in the repository, which I assume were committed without running the make style command.

Changes

Impact