huggingface / evaluate

🤗 Evaluate: A library for easily evaluating machine learning models and datasets.

Home Page:https://huggingface.co/docs/evaluate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CER.py error in class CERConfig

danhertztech opened this issue · comments

This is related to #486, but am posting separately, as it is an error specific to the cer.py file I am using.

Is there a more current cer.py file I should be using to move from datasets.load_metric("cer") to evaluate.load("cer")?

FILE:
https://huggingface.co/spaces/evaluate-metric/cer/blob/af39b3b7914ffb126ece472884f75033cfc4727b/cer.py

MY FILE LOCATION:
Placed it in /project-root/cer/cer.py
Google Colab

During evaluate phase of fine-tuning, ran into this error:

ERROR:
class CERConfig(evaluate.info.Config):
AttributeError: module 'evaluate.info' has no attribute 'Config'. Did you mean: 'config'?

Thanks!

Here is a screenshot.
colab-20230909-hf-cer-evaluate-error