crowsetta.interface.base.BaseFormat

crowsetta.interface.base.BaseFormat#

class crowsetta.interface.base.BaseFormat[source]#

Bases: ABC

An abstract base class that declares the interface for any sub-class that represents annotations loaded from a file in a specific format for annotating vocalizations.

__init__()#

Methods

__init__()

from_file()

Loads an annotation from a file in a given format.

to_annot()

Converts the instance representing annotations loaded from a file into a crowsetta.Annotation or a list of Annotation instances, that can be used to convert to other formats.

abstract classmethod from_file() Self[source]#

Loads an annotation from a file in a given format.

abstract to_annot() crowsetta.Annotation | List[crowsetta.Annotation][source]#

Converts the instance representing annotations loaded from a file into a crowsetta.Annotation or a list of Annotation instances, that can be used to convert to other formats.