ivangtorre commited on
Commit
3c07220
1 Parent(s): edc504f

changing and deleting files

Browse files
Files changed (1) hide show
  1. secondamericasnlp2022.py +24 -26
secondamericasnlp2022.py CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  def _info(self):
2
  return datasets.DatasetInfo(
3
  description=_DESCRIPTION,
@@ -15,36 +22,27 @@ def _info(self):
15
  )
16
 
17
  class SecondAmericasNLP2022Config(datasets.BuilderConfig):
18
- def __init__(self, features, data_url, label_classes=("False", "True"), **kwargs):
19
- # Version history:
20
- # 1.0.2: Fixed non-nondeterminism in ReCoRD.
21
- # 1.0.1: Change from the pre-release trial version of SuperGLUE (v1.9) to
22
- # the full release (v2.0).
23
- # 1.0.0: S3 (new shuffling, sharding and slicing mechanism).
24
- # 0.0.2: Initial version.
25
- super().__init__(version=datasets.Version("1.0.2"), **kwargs)
26
- self.features = features
27
- self.label_classes = label_classes
28
- self.data_url = data_url
29
 
30
  class SecondAmericasNLP2022(datasets.GeneratorBasedBuilder):
31
- """The SuperGLUE benchmark."""
32
 
33
  BUILDER_CONFIG_CLASS = SecondAmericasNLP2022Config
34
 
35
  BUILDER_CONFIGS = [
36
  SecondAmericasNLP2022Config(
37
- name="boolq",
38
- description=_BOOLQ_DESCRIPTION,
39
- features=["question", "passage"],
40
- data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/BoolQ.zip",
41
- ),
42
- SecondAmericasNLP2022Config(
43
- name="axg",
44
- description=_AXG_DESCRIPTION,
45
- features=["premise", "hypothesis"],
46
- label_classes=["entailment", "not_entailment"],
47
- data_url="https://dl.fbaipublicfiles.com/glue/superglue/data/v2/AX-g.zip",
48
- ),
49
- ]
50
-
 
1
+ _LANGUAGES = {
2
+ "qu": "quechua",
3
+ "gn": "guarani",
4
+ }
5
+ _VERSION = "1.0.0"
6
+
7
+
8
  def _info(self):
9
  return datasets.DatasetInfo(
10
  description=_DESCRIPTION,
 
22
  )
23
 
24
  class SecondAmericasNLP2022Config(datasets.BuilderConfig):
25
+ def __init__(self, languages=None, **kwargs):
26
+ super(SecondAmericasNLP2022Config, self).__init__(version=datasets.Version(_VERSION, ""), **kwargs),
27
+ self.languages = languages
 
 
 
 
 
 
 
 
28
 
29
  class SecondAmericasNLP2022(datasets.GeneratorBasedBuilder):
 
30
 
31
  BUILDER_CONFIG_CLASS = SecondAmericasNLP2022Config
32
 
33
  BUILDER_CONFIGS = [
34
  SecondAmericasNLP2022Config(
35
+ name=_ALL_LANGUAGES,
36
+ languages=_LANGUAGES,
37
+ )
38
+ ] + [
39
+ TapacoConfig(
40
+ name=lang,
41
+ languages=[lang],
42
+ )
43
+ for lang in _LANGUAGES
44
+ ]
45
+ BUILDER_CONFIG_CLASS = SecondAmericasNLP2022Config
46
+ DEFAULT_CONFIG_NAME = _ALL_LANGUAGES
47
+
48
+