Justyna Krzywdziak commited on
Commit ·
4086f0e
1
Parent(s): ba297ba
fixes
Browse files
MOCKS.py
CHANGED
|
@@ -42,7 +42,7 @@ audio testset for evaluation and benchmarking Open-Vocabulary Keyword Spotting (
|
|
| 42 |
|
| 43 |
_BASE_URL = "https://huggingface.co/datasets/voiceintelligenceresearch/MOCKS/tree/main"
|
| 44 |
_DL_URL = "https://huggingface.co/datasets/voiceintelligenceresearch/MOCKS/blob/main/"
|
| 45 |
-
_TR_URL = "https://huggingface.co/datasets/voiceintelligenceresearch/MOCKS/
|
| 46 |
_DL_URLS = {
|
| 47 |
"de.MCV": {
|
| 48 |
"offline": _DL_URL + "de/MCV/test/offline/data.tar.gz",
|
|
@@ -477,8 +477,9 @@ class Mocks(datasets.GeneratorBasedBuilder):
|
|
| 477 |
|
| 478 |
if s_type == "online":
|
| 479 |
trans_col_name = "adversary_keyword_transcription"
|
| 480 |
-
|
| 481 |
with open(transcription, encoding="utf-8") as f:
|
|
|
|
| 482 |
for row in f:
|
| 483 |
r = row.split(r"\t")
|
| 484 |
print(row)
|
|
|
|
| 42 |
|
| 43 |
_BASE_URL = "https://huggingface.co/datasets/voiceintelligenceresearch/MOCKS/tree/main"
|
| 44 |
_DL_URL = "https://huggingface.co/datasets/voiceintelligenceresearch/MOCKS/blob/main/"
|
| 45 |
+
_TR_URL = "https://huggingface.co/datasets/voiceintelligenceresearch/MOCKS/raw/main/"
|
| 46 |
_DL_URLS = {
|
| 47 |
"de.MCV": {
|
| 48 |
"offline": _DL_URL + "de/MCV/test/offline/data.tar.gz",
|
|
|
|
| 477 |
|
| 478 |
if s_type == "online":
|
| 479 |
trans_col_name = "adversary_keyword_transcription"
|
| 480 |
+
logger.info(transcription)
|
| 481 |
with open(transcription, encoding="utf-8") as f:
|
| 482 |
+
print(f)
|
| 483 |
for row in f:
|
| 484 |
r = row.split(r"\t")
|
| 485 |
print(row)
|