huggingface / evaluate

🤗 Evaluate: A library for easily evaluating machine learning models and datasets.

Home Page:https://huggingface.co/docs/evaluate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Evaluate SyntaxError: invalid syntax

NLBONU1 opened this issue · comments

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.