mathiascreutz
commited on
Commit
·
8ed48f8
1
Parent(s):
51a3a32
Testing configs
Browse files- opusparcus.py +3 -1
opusparcus.py
CHANGED
|
@@ -149,6 +149,7 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
|
|
| 149 |
# These kwargs will be passed to _generate_examples
|
| 150 |
gen_kwargs={
|
| 151 |
"lang": self.config.lang,
|
|
|
|
| 152 |
"filepath": data_dir["test"],
|
| 153 |
"split": "test"
|
| 154 |
},
|
|
@@ -158,6 +159,7 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
|
|
| 158 |
# These kwargs will be passed to _generate_examples
|
| 159 |
gen_kwargs={
|
| 160 |
"lang": self.config.lang,
|
|
|
|
| 161 |
"filepath": data_dir["validation"],
|
| 162 |
"split": "validation",
|
| 163 |
},
|
|
@@ -165,7 +167,7 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
|
|
| 165 |
]
|
| 166 |
|
| 167 |
def _generate_examples(
|
| 168 |
-
self,
|
| 169 |
):
|
| 170 |
|
| 171 |
# lang, qualitystr = configname.split("\.")
|
|
|
|
| 149 |
# These kwargs will be passed to _generate_examples
|
| 150 |
gen_kwargs={
|
| 151 |
"lang": self.config.lang,
|
| 152 |
+
"quality": 100,
|
| 153 |
"filepath": data_dir["test"],
|
| 154 |
"split": "test"
|
| 155 |
},
|
|
|
|
| 159 |
# These kwargs will be passed to _generate_examples
|
| 160 |
gen_kwargs={
|
| 161 |
"lang": self.config.lang,
|
| 162 |
+
"quality": 100,
|
| 163 |
"filepath": data_dir["validation"],
|
| 164 |
"split": "validation",
|
| 165 |
},
|
|
|
|
| 167 |
]
|
| 168 |
|
| 169 |
def _generate_examples(
|
| 170 |
+
self, lang, quality, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 171 |
):
|
| 172 |
|
| 173 |
# lang, qualitystr = configname.split("\.")
|