Emilio Marinone
commited on
Commit
•
893ddcf
1
Parent(s):
ea50fe4
fix touple error
Browse files
nst_sv.py
CHANGED
@@ -308,14 +308,14 @@ class NstSV(datasets.GeneratorBasedBuilder):
|
|
308 |
"pid": annotation["pid"],
|
309 |
"session": session_dict,
|
310 |
"system": system_dict,
|
311 |
-
"client_id":
|
312 |
'path': rel_filepath,
|
313 |
'audio': {"path": rel_filepath, "bytes": audio_bytes},
|
314 |
'sentence': recording["text"],
|
315 |
'up_votes': 0,
|
316 |
'down_votes': 0,
|
317 |
-
'age':
|
318 |
-
'gender':
|
319 |
'accent': "",
|
320 |
'locale': "sv",
|
321 |
'segment': "",
|
|
|
308 |
"pid": annotation["pid"],
|
309 |
"session": session_dict,
|
310 |
"system": system_dict,
|
311 |
+
"client_id": annotation["info"]["Speaker_ID"] or "",
|
312 |
'path': rel_filepath,
|
313 |
'audio': {"path": rel_filepath, "bytes": audio_bytes},
|
314 |
'sentence': recording["text"],
|
315 |
'up_votes': 0,
|
316 |
'down_votes': 0,
|
317 |
+
'age':annotation["info"]["Age"] or "",
|
318 |
+
'gender':annotation["info"]["Sex"] or "",
|
319 |
'accent': "",
|
320 |
'locale': "sv",
|
321 |
'segment': "",
|