Update czech_parliament_plenary_hearings.py
Browse files
czech_parliament_plenary_hearings.py
CHANGED
@@ -43,13 +43,20 @@ class CzechParliamentPlenaryHearings(GeneratorBasedBuilder):
|
|
43 |
def _split_generators(self, dl_manager):
|
44 |
archive_path = dl_manager.download(_DATASET_URL)
|
45 |
data_dir = os.path.join(archive_path, 'ASR_DATA')
|
46 |
-
splits =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
for split in splits:
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
|
54 |
def _generate_examples(self, split_dir, archive_path):
|
55 |
for folder_name in os.listdir(split_dir):
|
|
|
43 |
def _split_generators(self, dl_manager):
|
44 |
archive_path = dl_manager.download(_DATASET_URL)
|
45 |
data_dir = os.path.join(archive_path, 'ASR_DATA')
|
46 |
+
splits = ("train", "dev", "test")
|
47 |
+
|
48 |
+
split_names = {
|
49 |
+
"train": datasets.Split.TRAIN,
|
50 |
+
"dev": datasets.Split.VALIDATION,
|
51 |
+
"test": datasets.Split.TEST,
|
52 |
+
}
|
53 |
+
split_generators = []
|
54 |
for split in splits:
|
55 |
+
split_generators.append(
|
56 |
+
name=split_names.get(split, split),
|
57 |
+
gen_kwargs={'split': split, 'data_dir': data_dir}
|
58 |
+
)
|
59 |
+
return split_generators
|
60 |
|
61 |
def _generate_examples(self, split_dir, archive_path):
|
62 |
for folder_name in os.listdir(split_dir):
|