Spaces:
Running
Running
Update Space (evaluate main: e4a27243)
Browse files- requirements.txt +1 -1
- xnli.py +5 -1
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
git+https://github.com/huggingface/evaluate@
|
|
|
1 |
+
git+https://github.com/huggingface/evaluate@e4a2724377909fe2aeb4357e3971e5a569673b39
|
xnli.py
CHANGED
@@ -68,11 +68,15 @@ def simple_accuracy(preds, labels):
|
|
68 |
|
69 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
70 |
class Xnli(evaluate.Metric):
|
71 |
-
|
|
|
|
|
|
|
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"),
|
|
|
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"),
|