Datasets:

ArXiv:
License:
suolyer commited on
Commit
a54a55b
1 Parent(s): c163af6

Update testb.py

Browse files
Files changed (1) hide show
  1. testb.py +33 -2
testb.py CHANGED
@@ -3,13 +3,44 @@ import os
3
 
4
  import datasets
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  class TestB(datasets.GeneratorBasedBuilder):
7
  """The SuperGLUE benchmark."""
8
 
9
  BUILDER_CONFIGS = [
10
- SuperGlueConfig(
11
  name="data1",
12
  ),
13
- SuperGlueConfig(
14
  name="data2",
15
  )]
 
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
+ TestBConfig(
42
  name="data1",
43
  ),
44
+ TestBConfig(
45
  name="data2",
46
  )]