huggingface / evaluate

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

CER.py error in class CERConfig #495

Open danhertztech opened 11 months ago

danhertztech commented 11 months ago

This is related to https://github.com/huggingface/evaluate/issues/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!

danhertztech commented 11 months ago

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