Commit
•
0ee7fb5
1
Parent(s):
0a8cc53
Update test.py
Browse files
test.py
CHANGED
@@ -30,7 +30,7 @@ Lorem ipsum
|
|
30 |
|
31 |
_BASE_URL = "https://huggingface.co/datasets/j-krzywdziak/test/tree/main"
|
32 |
_DATA_URL = "https://huggingface.co/datasets/j-krzywdziak/test/blob/main/dev.tar.gz"
|
33 |
-
_PROMPTS_URLS = {"test": "https://huggingface.co/datasets/j-krzywdziak/test/
|
34 |
|
35 |
logger = datasets.logging.get_logger(__name__)
|
36 |
|
@@ -101,10 +101,8 @@ class TestASR(datasets.GeneratorBasedBuilder):
|
|
101 |
"""Lorem ipsum."""
|
102 |
metadata = {}
|
103 |
with open(meta_path, encoding="utf-8") as f:
|
104 |
-
print(f.read())
|
105 |
for row in f:
|
106 |
r = row.split(r"\t")
|
107 |
-
print(r)
|
108 |
audio_id = r[0]
|
109 |
ngram = r[1]
|
110 |
metadata[audio_id] = {"audio_id": audio_id,
|
|
|
30 |
|
31 |
_BASE_URL = "https://huggingface.co/datasets/j-krzywdziak/test/tree/main"
|
32 |
_DATA_URL = "https://huggingface.co/datasets/j-krzywdziak/test/blob/main/dev.tar.gz"
|
33 |
+
_PROMPTS_URLS = {"test": "https://huggingface.co/datasets/j-krzywdziak/test/raw/main/dev.tsv"}
|
34 |
|
35 |
logger = datasets.logging.get_logger(__name__)
|
36 |
|
|
|
101 |
"""Lorem ipsum."""
|
102 |
metadata = {}
|
103 |
with open(meta_path, encoding="utf-8") as f:
|
|
|
104 |
for row in f:
|
105 |
r = row.split(r"\t")
|
|
|
106 |
audio_id = r[0]
|
107 |
ngram = r[1]
|
108 |
metadata[audio_id] = {"audio_id": audio_id,
|