crowsetta.interface.base.BaseFormat#
- class crowsetta.interface.base.BaseFormat[source]#
Bases:
ABCAn 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__()Loads an annotation from a file in a given format.
to_annot()Converts the instance representing annotations loaded from a file into a
crowsetta.Annotationor alistofAnnotationinstances, that can be used to convert to other formats.- abstractmethod classmethod from_file() Self[source]#
Loads an annotation from a file in a given format.
- abstractmethod to_annot() crowsetta.Annotation | List[crowsetta.Annotation][source]#
Converts the instance representing annotations loaded from a file into a
crowsetta.Annotationor alistofAnnotationinstances, that can be used to convert to other formats.