SumitMdhr commited on
Commit
9552fc2
·
verified ·
1 Parent(s): f80f099

Update builder.py

Browse files
Files changed (1) hide show
  1. 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.csv",
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, {