j-krzywdziak
commited on
Commit
•
88358d8
1
Parent(s):
739035d
Update test.py
Browse files
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 |
-
|
109 |
-
|
|
|
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 |
|