Emilio Marinone commited on
Commit
893ddcf
1 Parent(s): ea50fe4

fix touple error

Browse files
Files changed (1) hide show
  1. nst_sv.py +3 -3
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": info_dict["Speaker_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':info_dict["Age"],
318
- 'gender':info_dict["Sex"],
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': "",