huggingface / huggingface/evaluate

AttributeError: module 'evaluate' has no attribute 'utils'

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

Description

Trying to load seqeval as per the huggingface docs https://huggingface.co/docs/transformers/v4.26.0/en/tasks/token_classification#evaluate

I am just running
```
import evaluate
seqeval = evaluate.load("seqeval")
```
The error I get seems to be coming from this part of the script:
```
--> 102 @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
103 class Seqeval(evaluate.Metric):
104 def _info(self):

AttributeError: module 'evaluate' has no attribute 'utils'
```

I've tried reinstalling most of the libraries but to no avail. Any idea what's going on? 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.