crowsetta.formats.seq.simple

crowsetta.formats.seq.simple#

Module with functions meant to handle any simple sequence-like annotation format.

The annotations can be a csv or txt file; the format should have 3 columns that represent the onset and offset times in seconds and the labels of the segments in the annotated sequences.

The default is to assume a comma-separated values file with a header ‘onset_s, offset_s, label’, but this can be modified with keyword arguments.

This format also assumes that each annotation file corresponds to one annotated source file, i.e. a single audio or spectrogram file.

Classes

SimpleSeq(onsets_s, offsets_s, labels, ...)

Class meant to represent any simple sequence-like annotation format.

SimpleSeqSchema(*args, **kwargs)

A pandera.SchemaModel that validates :type:`pandas.DataFrame`s loaded from a csv or txt file in a 'simple-seq' format.