Update self_dataset.py
Browse files- self_dataset.py +4 -5
self_dataset.py
CHANGED
|
@@ -40,7 +40,7 @@ in the e-banking domain, associated with spoken examples in 14 diverse language
|
|
| 40 |
"""
|
| 41 |
|
| 42 |
_ALL_CONFIGS = sorted([
|
| 43 |
-
"
|
| 44 |
])
|
| 45 |
|
| 46 |
|
|
@@ -105,8 +105,7 @@ class ATC(datasets.GeneratorBasedBuilder):
|
|
| 105 |
def _split_generators(self, dl_manager):
|
| 106 |
langs = (
|
| 107 |
_ALL_CONFIGS
|
| 108 |
-
|
| 109 |
-
else [self.config.name]
|
| 110 |
)
|
| 111 |
|
| 112 |
archive_path = dl_manager.download_and_extract(self.config.data_url)
|
|
@@ -142,7 +141,7 @@ class ATC(datasets.GeneratorBasedBuilder):
|
|
| 142 |
|
| 143 |
file_path = os.path.join(audio_path, *file_path.split("/"))
|
| 144 |
yield key, {
|
| 145 |
-
"
|
| 146 |
-
"reference":
|
| 147 |
}
|
| 148 |
key += 1
|
|
|
|
| 40 |
"""
|
| 41 |
|
| 42 |
_ALL_CONFIGS = sorted([
|
| 43 |
+
"en-US"
|
| 44 |
])
|
| 45 |
|
| 46 |
|
|
|
|
| 105 |
def _split_generators(self, dl_manager):
|
| 106 |
langs = (
|
| 107 |
_ALL_CONFIGS
|
| 108 |
+
[self.config.name]
|
|
|
|
| 109 |
)
|
| 110 |
|
| 111 |
archive_path = dl_manager.download_and_extract(self.config.data_url)
|
|
|
|
| 141 |
|
| 142 |
file_path = os.path.join(audio_path, *file_path.split("/"))
|
| 143 |
yield key, {
|
| 144 |
+
"file_path": file_path,
|
| 145 |
+
"reference": reference,
|
| 146 |
}
|
| 147 |
key += 1
|