Spaces:
Running
Running
Commit
·
9f79b29
1
Parent(s):
23752a5
WIP
Browse files- glue-suite-v2.py +7 -8
glue-suite-v2.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
from datasets.features import Features, Sequence, Value
|
| 2 |
from evaluate.module import EvaluationModuleInfo
|
| 3 |
-
# from evaluate.evaluation_suite import SubTask
|
| 4 |
import evaluate
|
| 5 |
|
| 6 |
from typing import Optional, Union, Callable
|
|
@@ -20,13 +19,13 @@ class Suite(evaluate.EvaluationSuite):
|
|
| 20 |
|
| 21 |
def __init__(self, name):
|
| 22 |
super().__init__(name)
|
| 23 |
-
|
| 24 |
-
def _info(self):
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
|
| 31 |
def setup(self):
|
| 32 |
self.preprocessor = None #lambda x: x["text"].lower()
|
|
|
|
| 1 |
from datasets.features import Features, Sequence, Value
|
| 2 |
from evaluate.module import EvaluationModuleInfo
|
|
|
|
| 3 |
import evaluate
|
| 4 |
|
| 5 |
from typing import Optional, Union, Callable
|
|
|
|
| 19 |
|
| 20 |
def __init__(self, name):
|
| 21 |
super().__init__(name)
|
| 22 |
+
#
|
| 23 |
+
# def _info(self):
|
| 24 |
+
# return EvaluationModuleInfo(
|
| 25 |
+
# module_type="evaluation_suite",
|
| 26 |
+
# description="dummy metric for tests",
|
| 27 |
+
# citation="insert citation here",
|
| 28 |
+
# features=Features({"predictions": Value("int64"), "references": Value("int64")}))
|
| 29 |
|
| 30 |
def setup(self):
|
| 31 |
self.preprocessor = None #lambda x: x["text"].lower()
|