huggingface / huggingface/evaluate

TypeError: 'NoneType' object is not callable

Open
#647 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

When I use this code, I encounter an error that I can't resolve.
metric = evaluate.load(
"squad_v2" if data_args.version_2_with_negative else "squad", cache_dir=model_args.cache_dir
)

File "../../pytorch/question-answering/run_qa.py", line 712, in
main()
File "../../pytorch/question-answering/run_qa.py", line 626, in main
metric = evaluate.load(
File "/opt/conda/lib/python3.8/site-packages/evaluate/loading.py", line 706, in load
evaluation_instance = evaluation_cls(
TypeError: 'NoneType' object is not callable

evaluate is 0.4.3
transformer is 4.46.1
datasets is 2.16.0

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.