Update builder.py
Browse files- builder.py +2 -2
builder.py
CHANGED
|
@@ -68,7 +68,7 @@ _LICENSE = "license:cc-by-sa-4.0"
|
|
| 68 |
_URL = "https://huggingface.co/datasets/SumitMdhr/ASR/resolve/main/"
|
| 69 |
_URLS = {
|
| 70 |
"zipfile": _URL + "CLEAN_DATA.zip",
|
| 71 |
-
"index_file": _URL + "metadata1.
|
| 72 |
}
|
| 73 |
|
| 74 |
|
|
@@ -127,7 +127,7 @@ class NepaliAsr(datasets.GeneratorBasedBuilder):
|
|
| 127 |
|
| 128 |
def _generate_examples(self, index_file, audio_paths):
|
| 129 |
with open(index_file, encoding="utf-8") as f:
|
| 130 |
-
reader = csv.DictReader(f)
|
| 131 |
for key, row in enumerate(reader):
|
| 132 |
path = os.path.join(audio_paths, "CLEAN_DATA", row['utterance_id'])
|
| 133 |
yield key, {
|
|
|
|
| 68 |
_URL = "https://huggingface.co/datasets/SumitMdhr/ASR/resolve/main/"
|
| 69 |
_URLS = {
|
| 70 |
"zipfile": _URL + "CLEAN_DATA.zip",
|
| 71 |
+
"index_file": _URL + "metadata1.tsv",
|
| 72 |
}
|
| 73 |
|
| 74 |
|
|
|
|
| 127 |
|
| 128 |
def _generate_examples(self, index_file, audio_paths):
|
| 129 |
with open(index_file, encoding="utf-8") as f:
|
| 130 |
+
reader = csv.DictReader(f , delimiter="\t")
|
| 131 |
for key, row in enumerate(reader):
|
| 132 |
path = os.path.join(audio_paths, "CLEAN_DATA", row['utterance_id'])
|
| 133 |
yield key, {
|