mathiascreutz commited on
Commit
0157c3c
1 Parent(s): 1147d27

Data loader produces full test and validation split as well

Browse files
Files changed (1) hide show
  1. opusparcus.py +4 -2
opusparcus.py CHANGED
@@ -47,6 +47,8 @@ _LICENSE = ""
47
  _URLs = {
48
  "validation": "validation.jsonl",
49
  "test": "test.jsonl",
 
 
50
  # NB: the "train" split file is defined dynamically inside the `_split_generators` method
51
  }
52
 
@@ -155,7 +157,7 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
155
  gen_kwargs={
156
  "lang": self.config.lang,
157
  "quality": 100,
158
- "filepath": data_dir["test"],
159
  "split": "test.full"
160
  },
161
  ),
@@ -165,7 +167,7 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
165
  gen_kwargs={
166
  "lang": self.config.lang,
167
  "quality": 100,
168
- "filepath": data_dir["validation"],
169
  "split": "validation.full",
170
  },
171
  ),
 
47
  _URLs = {
48
  "validation": "validation.jsonl",
49
  "test": "test.jsonl",
50
+ "validation.full": "validation.jsonl",
51
+ "test.full": "test.jsonl",
52
  # NB: the "train" split file is defined dynamically inside the `_split_generators` method
53
  }
54
 
 
157
  gen_kwargs={
158
  "lang": self.config.lang,
159
  "quality": 100,
160
+ "filepath": data_dir["test.full"],
161
  "split": "test.full"
162
  },
163
  ),
 
167
  gen_kwargs={
168
  "lang": self.config.lang,
169
  "quality": 100,
170
+ "filepath": data_dir["validation.full"],
171
  "split": "validation.full",
172
  },
173
  ),