Datasets:

ArXiv:
License:
suolyer commited on
Commit
314cc95
1 Parent(s): b918a18

Update testb.py

Browse files
Files changed (1) hide show
  1. testb.py +34 -6
testb.py CHANGED
@@ -3,13 +3,41 @@ import os
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="data1", version=VERSION, description="This part of my dataset covers a first domain"),
12
- datasets.BuilderConfig(name="data2", version=VERSION, description="This part of my dataset covers a second domain"),
13
- ]
14
-
15
- DEFAULT_CONFIG_NAME = "data1"
 
 
 
 
3
 
4
  import datasets
5
 
6
+ class TestBConfig(datasets.BuilderConfig):
7
+ """BuilderConfig for SuperGLUE."""
8
+
9
+ def __init__(self, data_url, **kwargs):
10
+ """BuilderConfig for SuperGLUE.
11
+
12
+ Args:
13
+ features: *list[string]*, list of the features that will appear in the
14
+ feature dict. Should not include "label".
15
+ data_url: *string*, url to download the zip file from.
16
+ citation: *string*, citation for the data set.
17
+ url: *string*, url for information about the data set.
18
+ label_classes: *list[string]*, the list of classes for the label if the
19
+ label is present as a string. Non-string labels will be cast to either
20
+ 'False' or 'True'.
21
+ **kwargs: keyword arguments forwarded to super.
22
+ """
23
+ # Version history:
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().__init__(version=datasets.Version("1.0.2"), **kwargs)
30
+ self.data_url = data_url
31
+
32
 
33
  class TestB(datasets.GeneratorBasedBuilder):
34
  """The SuperGLUE benchmark."""
 
35
  BUILDER_CONFIGS = [
36
+ TestBConfig(
37
+ name="data1",
38
+ data_url="./data1/",
39
+ ),
40
+ TestBConfig(
41
+ name="data2",
42
+ data_url="./data2",
43
+ )]