huggingface / huggingface/evaluate

Evaluate SyntaxError: invalid syntax

Open
#460 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 try to run the following script;

import evaluate
eval_metric = evaluate.load("squad")
results = eval_metric.compute(references=new_examples, predictions=predictions)

I get this error;

C:\Users\{username}\.cache\huggingface\modules\evaluate_modules\metrics\evaluate-metric--squad\325
1bbcfa55c37b65f3a26f2bdedcdb2754db6bc08eee6af36c6ac871783b8d2\squad.py:1

│ ▲
SyntaxError: invalid syntax

I am working on my company's laptop and it has ZScaler enabled, could this be part of the issue?

Looking forward to a response, 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.