Emilio Marinone commited on
Commit
e7f4d41
1 Parent(s): a09966c

discard metadata

Browse files
Files changed (1) hide show
  1. nst_no.py +24 -24
nst_no.py CHANGED
@@ -261,30 +261,30 @@ class NstNO(datasets.GeneratorBasedBuilder):
261
  with open(audio_filepath, "rb") as f:
262
  audio_bytes = f.read()
263
  result = {
264
- "region_of_birth": annotation["info"]["Region_of_Birth"] or "",
265
- "region_of_youth": annotation["info"]["Region_of_Youth"] or "",
266
- "remarks": annotation["info"]["Remarks"] or "",
267
- "pid": annotation["pid"] or "",
268
- "directory": annotation["session"]["Directory"] or "",
269
- "imported_sheet_file": annotation["session"]["Imported_sheet_file"] or "",
270
- "mumber_of_recordings": annotation["session"]["Number_of_recordings"] or "",
271
- "rec_date": annotation["session"]["RecDate"] or "",
272
- "rec_time": annotation["session"]["RecTime"] or "",
273
- "record_duration": annotation["session"]["Record_duration"] or "",
274
- "record_session": annotation["session"]["Record_session"] or "",
275
- "sheet_number": annotation["session"]["Sheet_number"] or "",
276
- "ansi_codepage": annotation["system"]["ANSI_Codepage"] or "",
277
- "board": annotation["system"]["Board"] or "",
278
- "byte_format": annotation["system"]["ByteFormat"] or "",
279
- "channels": annotation["system"]["Channels"] or "",
280
- "character_set": annotation["system"]["CharacterSet"] or "",
281
- "coding": annotation["system"]["Coding"] or "",
282
- "dos_codepage": annotation["system"]["DOS_Codepage"] or "",
283
- "delimiter": annotation["system"]["Delimiter"] or "",
284
- "frequency": annotation["system"]["Frequency"] or "",
285
- "memo": annotation["system"]["Memo"] or "",
286
- "script": annotation["system"]["Script"] or "",
287
- "version": annotation["system"]["Version"] or "",
288
  "audio": {"path": rel_filepath, "bytes": audio_bytes},
289
  'client_id': annotation["info"]["Speaker_ID"] or "",
290
  'path': rel_filepath,
 
261
  with open(audio_filepath, "rb") as f:
262
  audio_bytes = f.read()
263
  result = {
264
+ # "region_of_birth": annotation["info"]["Region_of_Birth"] or "",
265
+ # "region_of_youth": annotation["info"]["Region_of_Youth"] or "",
266
+ # "remarks": annotation["info"]["Remarks"] or "",
267
+ # "pid": annotation["pid"] or "",
268
+ # "directory": annotation["session"]["Directory"] or "",
269
+ # "imported_sheet_file": annotation["session"]["Imported_sheet_file"] or "",
270
+ # "mumber_of_recordings": annotation["session"]["Number_of_recordings"] or "",
271
+ # "rec_date": annotation["session"]["RecDate"] or "",
272
+ # "rec_time": annotation["session"]["RecTime"] or "",
273
+ # "record_duration": annotation["session"]["Record_duration"] or "",
274
+ # "record_session": annotation["session"]["Record_session"] or "",
275
+ # "sheet_number": annotation["session"]["Sheet_number"] or "",
276
+ # "ansi_codepage": annotation["system"]["ANSI_Codepage"] or "",
277
+ # "board": annotation["system"]["Board"] or "",
278
+ # "byte_format": annotation["system"]["ByteFormat"] or "",
279
+ # "channels": annotation["system"]["Channels"] or "",
280
+ # "character_set": annotation["system"]["CharacterSet"] or "",
281
+ # "coding": annotation["system"]["Coding"] or "",
282
+ # "dos_codepage": annotation["system"]["DOS_Codepage"] or "",
283
+ # "delimiter": annotation["system"]["Delimiter"] or "",
284
+ # "frequency": annotation["system"]["Frequency"] or "",
285
+ # "memo": annotation["system"]["Memo"] or "",
286
+ # "script": annotation["system"]["Script"] or "",
287
+ # "version": annotation["system"]["Version"] or "",
288
  "audio": {"path": rel_filepath, "bytes": audio_bytes},
289
  'client_id': annotation["info"]["Speaker_ID"] or "",
290
  'path': rel_filepath,