mathiascreutz
commited on
Commit
·
57d631f
1
Parent(s):
faa6add
Data loader produces full test and validation split as well
Browse files- opusparcus.py +1 -1
opusparcus.py
CHANGED
@@ -236,7 +236,7 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
|
|
236 |
"quality": data["quality"],
|
237 |
}
|
238 |
else:
|
239 |
-
keep_all = (split == "full-validation"
|
240 |
with open(filepath, encoding="utf-8") as f:
|
241 |
for id_, row in enumerate(f):
|
242 |
data = json.loads(row)
|
|
|
236 |
"quality": data["quality"],
|
237 |
}
|
238 |
else:
|
239 |
+
keep_all = (split == "full-validation" or split == "full-test")
|
240 |
with open(filepath, encoding="utf-8") as f:
|
241 |
for id_, row in enumerate(f):
|
242 |
data = json.loads(row)
|