mathiascreutz commited on
Commit
1147d27
1 Parent(s): 8b6a58d

Data loader produces full test and validation split as well

Browse files
Files changed (1) hide show
  1. opusparcus.py +8 -8
opusparcus.py CHANGED
@@ -150,43 +150,43 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
150
 
151
  splits = [
152
  datasets.SplitGenerator(
153
- name=datasets.Split.TEST,
154
  # These kwargs will be passed to _generate_examples
155
  gen_kwargs={
156
  "lang": self.config.lang,
157
  "quality": 100,
158
  "filepath": data_dir["test"],
159
- "split": "test"
160
  },
161
  ),
162
  datasets.SplitGenerator(
163
- name=datasets.Split.VALIDATION,
164
  # These kwargs will be passed to _generate_examples
165
  gen_kwargs={
166
  "lang": self.config.lang,
167
  "quality": 100,
168
  "filepath": data_dir["validation"],
169
- "split": "validation",
170
  },
171
  ),
172
  datasets.SplitGenerator(
173
- name="test.full",
174
  # These kwargs will be passed to _generate_examples
175
  gen_kwargs={
176
  "lang": self.config.lang,
177
  "quality": 100,
178
  "filepath": data_dir["test"],
179
- "split": "test.full"
180
  },
181
  ),
182
  datasets.SplitGenerator(
183
- name="validation.full",
184
  # These kwargs will be passed to _generate_examples
185
  gen_kwargs={
186
  "lang": self.config.lang,
187
  "quality": 100,
188
  "filepath": data_dir["validation"],
189
- "split": "validation.full",
190
  },
191
  )
192
  ]
 
150
 
151
  splits = [
152
  datasets.SplitGenerator(
153
+ name="test.full",
154
  # These kwargs will be passed to _generate_examples
155
  gen_kwargs={
156
  "lang": self.config.lang,
157
  "quality": 100,
158
  "filepath": data_dir["test"],
159
+ "split": "test.full"
160
  },
161
  ),
162
  datasets.SplitGenerator(
163
+ name="validation.full",
164
  # These kwargs will be passed to _generate_examples
165
  gen_kwargs={
166
  "lang": self.config.lang,
167
  "quality": 100,
168
  "filepath": data_dir["validation"],
169
+ "split": "validation.full",
170
  },
171
  ),
172
  datasets.SplitGenerator(
173
+ name=datasets.Split.TEST,
174
  # These kwargs will be passed to _generate_examples
175
  gen_kwargs={
176
  "lang": self.config.lang,
177
  "quality": 100,
178
  "filepath": data_dir["test"],
179
+ "split": "test"
180
  },
181
  ),
182
  datasets.SplitGenerator(
183
+ name=datasets.Split.VALIDATION,
184
  # These kwargs will be passed to _generate_examples
185
  gen_kwargs={
186
  "lang": self.config.lang,
187
  "quality": 100,
188
  "filepath": data_dir["validation"],
189
+ "split": "validation",
190
  },
191
  )
192
  ]