huggingface / huggingface/evaluate

CER.py error in class CERConfig

Open
#495 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.5k
Forks
341
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.