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__
()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 alist
ofAnnotation
instances, that can be used to convert to other formats.- abstract to_annot() crowsetta.Annotation | List[crowsetta.Annotation] [source]#
Converts the instance representing annotations loaded from a file into a
crowsetta.Annotation
or alist
ofAnnotation
instances, that can be used to convert to other formats.