You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
evaluate.load() for any measurement/metrics does not work properly with versions >0.4.0. Please downgrade to 0.4.0 to make it work. I also discovered after lot of frustrating trials.
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
The text was updated successfully, but these errors were encountered: