Commit
•
c4447c6
1
Parent(s):
1a48baf
Update asr.py
Browse files
asr.py
CHANGED
@@ -130,9 +130,7 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
130 |
local_extracted_archive_paths = dl_manager.extract(archive_paths) if not dl_manager.is_streaming else {}
|
131 |
|
132 |
meta_urls = {split: _TRANSCRIPT_URL.format(lang=lang, split=split) for split in splits}
|
133 |
-
print(meta_urls)
|
134 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
135 |
-
print(meta_paths)
|
136 |
|
137 |
split_generators = []
|
138 |
split_names = {
|
@@ -156,7 +154,6 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
156 |
def _generate_examples(self, local_extracted_archive_paths, archives, meta_path):
|
157 |
data_fields = list(self._info().features.keys())
|
158 |
metadata = {}
|
159 |
-
print(meta_path)
|
160 |
with open(meta_path, encoding="utf-8") as f:
|
161 |
reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
|
162 |
for row in tqdm(reader, desc="Reading metadata..."):
|
|
|
130 |
local_extracted_archive_paths = dl_manager.extract(archive_paths) if not dl_manager.is_streaming else {}
|
131 |
|
132 |
meta_urls = {split: _TRANSCRIPT_URL.format(lang=lang, split=split) for split in splits}
|
|
|
133 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
|
|
134 |
|
135 |
split_generators = []
|
136 |
split_names = {
|
|
|
154 |
def _generate_examples(self, local_extracted_archive_paths, archives, meta_path):
|
155 |
data_fields = list(self._info().features.keys())
|
156 |
metadata = {}
|
|
|
157 |
with open(meta_path, encoding="utf-8") as f:
|
158 |
reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
|
159 |
for row in tqdm(reader, desc="Reading metadata..."):
|