Spaces:
Runtime error
Runtime error
Update Space (evaluate main: c447fc8e)
Browse files- requirements.txt +1 -1
- xnli.py +1 -5
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
git+https://github.com/huggingface/evaluate@
|
|
|
1 |
+
git+https://github.com/huggingface/evaluate@c447fc8eda9c62af501bfdc6988919571050d950
|
xnli.py
CHANGED
@@ -68,15 +68,11 @@ def simple_accuracy(preds, labels):
|
|
68 |
|
69 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
70 |
class Xnli(evaluate.Metric):
|
71 |
-
|
72 |
-
ALLOWED_CONFIG_NAMES = ["default"]
|
73 |
-
|
74 |
-
def _info(self, config):
|
75 |
return evaluate.MetricInfo(
|
76 |
description=_DESCRIPTION,
|
77 |
citation=_CITATION,
|
78 |
inputs_description=_KWARGS_DESCRIPTION,
|
79 |
-
config=config,
|
80 |
features=datasets.Features(
|
81 |
{
|
82 |
"predictions": datasets.Value("int64" if self.config_name != "sts-b" else "float32"),
|
|
|
68 |
|
69 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
70 |
class Xnli(evaluate.Metric):
|
71 |
+
def _info(self):
|
|
|
|
|
|
|
72 |
return evaluate.MetricInfo(
|
73 |
description=_DESCRIPTION,
|
74 |
citation=_CITATION,
|
75 |
inputs_description=_KWARGS_DESCRIPTION,
|
|
|
76 |
features=datasets.Features(
|
77 |
{
|
78 |
"predictions": datasets.Value("int64" if self.config_name != "sts-b" else "float32"),
|