sed_eval.io.load_event_list

sed_eval.io.load_event_list(filename, **kwargs)[source]

Load event list from csv formatted text-file

Supported formats (see more dcase_util.containers.MetaDataContainer.load() method):

  • [event onset (float >= 0)][delimiter][event offset (float >= 0)]
  • [event onset (float >= 0)][delimiter][event offset (float >= 0)][delimiter][label]
  • [filename][delimiter][event onset (float >= 0)][delimiter][event offset (float >= 0)][delimiter][event label]
  • [filename][delimiter][scene_label][delimiter][event onset (float >= 0)][delimiter][event offset (float >= 0)][delimiter][event label]
  • [filename]

Supported delimiters: ,, ;, tab

Example of event list file:

21.64715        23.00552        alert
36.91184        38.27021        alert
69.72575        71.09029        alert
63.53990        64.89827        alert
84.25553        84.83920        alert
20.92974        21.82661        clearthroat
28.39992        29.29679        clearthroat
80.47837        81.95937        clearthroat
44.48363        45.96463        clearthroat
78.13073        79.05953        clearthroat
15.17031        16.27235        cough
20.54931        21.65135        cough
27.79964        28.90168        cough
75.45959        76.32490        cough
70.81708        71.91912        cough
21.23203        22.55902        doorslam
7.546220        9.014880        doorslam
34.11303        35.04183        doorslam
45.86001        47.32867        doorslam
Parameters:

filename : str

Path to the csv-file

Returns:

list of dict

Event list