Datasets:

Tasks:
Other
Languages:
Swedish
Multilinguality:
monolingual
Size Categories:
unknown
Language Creators:
other
Annotations Creators:
expert-generated
Source Datasets:
original
Tags:
structure-prediction
License:
Robin Kurtz commited on
Commit
1a57806
1 Parent(s): efc2dac
Files changed (1) hide show
  1. suc3_1.py +12 -11
suc3_1.py CHANGED
@@ -59,13 +59,14 @@ _URLS = {
59
  "original_tags": {
60
  "cased": "original_tags/cased",
61
  "lower": "original_tags/lower",
62
- "lower_mix": "original_tags/lower_mix"},
63
  "simple_tags": {
64
  "cased": "simple_tags/cased",
65
  "lower": "simple_tags/lower",
66
- "lower_mix": "simple_tags/lower_mix"}
67
  }
68
 
 
69
  _POS_LABEL_NAMES = {
70
  'AB', 'DT', 'HA', 'HD', 'HP', 'HS', 'IE', 'IN', 'JJ', 'KN', 'MAD', 'MID',
71
  'NN', 'PAD', 'PC', 'PL', 'PM', 'PN', 'PP', 'PS', 'RG', 'RO', 'SN', 'UO',
@@ -83,7 +84,7 @@ _NER_LABEL_NAMES_SIMPLE = {
83
  }
84
 
85
 
86
- class SucConfig(datasets.BuilderConfig):
87
  """BuilderConfig for Suc."""
88
  def __init__(self,
89
  ner_label_names,
@@ -92,7 +93,7 @@ class SucConfig(datasets.BuilderConfig):
92
  **kwargs):
93
  """BuilderConfig for Suc.
94
  """
95
- super(SucConfig,
96
  self).__init__(version=datasets.Version("1.0.2"), **kwargs)
97
  self.ner_label_names = ner_label_names
98
  self.description = description
@@ -100,41 +101,41 @@ class SucConfig(datasets.BuilderConfig):
100
 
101
 
102
 
103
- class Suc(datasets.GeneratorBasedBuilder):
104
  """The SuperGLUE benchmark."""
105
 
106
  BUILDER_CONFIGS = [
107
- SucConfig(
108
  name="original_cased",
109
  ner_label_names=_NER_LABEL_NAMES_ORIGINAL,
110
  data_url=_URLS["original_tags"]["cased"],
111
  description="manually annotated & cased",
112
  ),
113
- SucConfig(
114
  name="original_lower",
115
  ner_label_names=_NER_LABEL_NAMES_ORIGINAL,
116
  data_url=_URLS["original_tags"]["lower"],
117
  description="manually annotated & lower",
118
  ),
119
- SucConfig(
120
  name="original_lower_mixed",
121
  ner_label_names=_NER_LABEL_NAMES_ORIGINAL,
122
  data_url=_URLS["original_tags"]["lower_mixed"],
123
  description="manually annotated & lower_mixed",
124
  ),
125
- SucConfig(
126
  name="simple_cased",
127
  ner_label_names=_NER_LABEL_NAMES_SIMPLE,
128
  data_url=_URLS["simple_tags"]["cased"],
129
  description="automatically annotated & cased",
130
  ),
131
- SucConfig(
132
  name="simple_lower",
133
  ner_label_names=_NER_LABEL_NAMES_SIMPLE,
134
  data_url=_URLS["simple_tags"]["lower"],
135
  description="automatically annotated & lower",
136
  ),
137
- SucConfig(
138
  name="simple_lower_mixed",
139
  ner_label_names=_NER_LABEL_NAMES_SIMPLE,
140
  data_url=_URLS["simple_tags"]["lower_mixed"],
59
  "original_tags": {
60
  "cased": "original_tags/cased",
61
  "lower": "original_tags/lower",
62
+ "lower_mixed": "original_tags/lower_mix"},
63
  "simple_tags": {
64
  "cased": "simple_tags/cased",
65
  "lower": "simple_tags/lower",
66
+ "lower_mixed": "simple_tags/lower_mix"}
67
  }
68
 
69
+
70
  _POS_LABEL_NAMES = {
71
  'AB', 'DT', 'HA', 'HD', 'HP', 'HS', 'IE', 'IN', 'JJ', 'KN', 'MAD', 'MID',
72
  'NN', 'PAD', 'PC', 'PL', 'PM', 'PN', 'PP', 'PS', 'RG', 'RO', 'SN', 'UO',
84
  }
85
 
86
 
87
+ class SUC3Config(datasets.BuilderConfig):
88
  """BuilderConfig for Suc."""
89
  def __init__(self,
90
  ner_label_names,
93
  **kwargs):
94
  """BuilderConfig for Suc.
95
  """
96
+ super(SUC3Config,
97
  self).__init__(version=datasets.Version("1.0.2"), **kwargs)
98
  self.ner_label_names = ner_label_names
99
  self.description = description
101
 
102
 
103
 
104
+ class SUC3(datasets.GeneratorBasedBuilder):
105
  """The SuperGLUE benchmark."""
106
 
107
  BUILDER_CONFIGS = [
108
+ SUC3Config(
109
  name="original_cased",
110
  ner_label_names=_NER_LABEL_NAMES_ORIGINAL,
111
  data_url=_URLS["original_tags"]["cased"],
112
  description="manually annotated & cased",
113
  ),
114
+ SUC3Config(
115
  name="original_lower",
116
  ner_label_names=_NER_LABEL_NAMES_ORIGINAL,
117
  data_url=_URLS["original_tags"]["lower"],
118
  description="manually annotated & lower",
119
  ),
120
+ SUC3Config(
121
  name="original_lower_mixed",
122
  ner_label_names=_NER_LABEL_NAMES_ORIGINAL,
123
  data_url=_URLS["original_tags"]["lower_mixed"],
124
  description="manually annotated & lower_mixed",
125
  ),
126
+ SUC3Config(
127
  name="simple_cased",
128
  ner_label_names=_NER_LABEL_NAMES_SIMPLE,
129
  data_url=_URLS["simple_tags"]["cased"],
130
  description="automatically annotated & cased",
131
  ),
132
+ SUC3Config(
133
  name="simple_lower",
134
  ner_label_names=_NER_LABEL_NAMES_SIMPLE,
135
  data_url=_URLS["simple_tags"]["lower"],
136
  description="automatically annotated & lower",
137
  ),
138
+ SUC3Config(
139
  name="simple_lower_mixed",
140
  ner_label_names=_NER_LABEL_NAMES_SIMPLE,
141
  data_url=_URLS["simple_tags"]["lower_mixed"],