Update testb.py
Browse files
testb.py
CHANGED
@@ -3,44 +3,13 @@ import os
|
|
3 |
|
4 |
import datasets
|
5 |
|
6 |
-
class TestBConfig(datasets.BuilderConfig):
|
7 |
-
"""BuilderConfig for SuperGLUE."""
|
8 |
-
|
9 |
-
def __init__(self, features, data_url, citation, url, label_classes=("False", "True"), **kwargs):
|
10 |
-
"""BuilderConfig for SuperGLUE.
|
11 |
-
Args:
|
12 |
-
features: `list[string]`, list of the features that will appear in the
|
13 |
-
feature dict. Should not include "label".
|
14 |
-
data_url: `string`, url to download the zip file from.
|
15 |
-
citation: `string`, citation for the data set.
|
16 |
-
url: `string`, url for information about the data set.
|
17 |
-
label_classes: `list[string]`, the list of classes for the label if the
|
18 |
-
label is present as a string. Non-string labels will be cast to either
|
19 |
-
'False' or 'True'.
|
20 |
-
**kwargs: keyword arguments forwarded to super.
|
21 |
-
"""
|
22 |
-
# Version history:
|
23 |
-
# 1.0.3: Fix not including entity position in ReCoRD.
|
24 |
-
# 1.0.2: Fixed non-nondeterminism in ReCoRD.
|
25 |
-
# 1.0.1: Change from the pre-release trial version of SuperGLUE (v1.9) to
|
26 |
-
# the full release (v2.0).
|
27 |
-
# 1.0.0: S3 (new shuffling, sharding and slicing mechanism).
|
28 |
-
# 0.0.2: Initial version.
|
29 |
-
super(SuperGlueConfig, self).__init__(version=datasets.Version("1.0.3"), **kwargs)
|
30 |
-
self.features = features
|
31 |
-
self.label_classes = label_classes
|
32 |
-
self.data_url = data_url
|
33 |
-
self.citation = citation
|
34 |
-
self.url = url
|
35 |
-
|
36 |
|
37 |
class TestB(datasets.GeneratorBasedBuilder):
|
38 |
"""The SuperGLUE benchmark."""
|
39 |
-
|
40 |
BUILDER_CONFIGS = [
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
)]
|
|
|
3 |
|
4 |
import datasets
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
class TestB(datasets.GeneratorBasedBuilder):
|
8 |
"""The SuperGLUE benchmark."""
|
9 |
+
VERSION = datasets.Version("1.1.0")
|
10 |
BUILDER_CONFIGS = [
|
11 |
+
datasets.BuilderConfig(name="first_domain", version=VERSION, description="This part of my dataset covers a first domain"),
|
12 |
+
datasets.BuilderConfig(name="second_domain", version=VERSION, description="This part of my dataset covers a second domain"),
|
13 |
+
]
|
14 |
+
|
15 |
+
DEFAULT_CONFIG_NAME = "first_domain"
|
|