j-krzywdziak commited on
Commit
88358d8
1 Parent(s): 739035d

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +3 -2
test.py CHANGED
@@ -105,8 +105,9 @@ class TestASR(datasets.GeneratorBasedBuilder):
105
  metadata = {}
106
  with open(meta_path, encoding="utf-8") as f:
107
  for row in f:
108
- audio_id = row.split("\t")[0]
109
- ngram = row.split("\t")[1]
 
110
  metadata[audio_id] = {"audio_id": audio_id,
111
  "ngram": ngram}
112
 
 
105
  metadata = {}
106
  with open(meta_path, encoding="utf-8") as f:
107
  for row in f:
108
+ r = row.split(r"\t")
109
+ audio_id = r[0]
110
+ ngram = r[1]
111
  metadata[audio_id] = {"audio_id": audio_id,
112
  "ngram": ngram}
113