texttaglib/elan.py
def _add_annotation_xml(self, annotation_node) -> ELANAnnotation:
        """ [Internal function] Create an annotation from a node
        
        General users should not use this function.
        """
        alignable = annotation_node.find('ALIGNABLE_ANNOTATION')
        if alignable is not None:
            return self.add_alignable_annotation_xml(alignable)
        else:
            ref_ann_node = annotation_node.find('REF_ANNOTATION')
            if ref_ann_node is not None:
                return self.add_ref_annotation_xml(ref_ann_node)
            else:
                raise ValueError("ANNOTATION node must not be empty")
 [Internal function] Create an annotation from a node
        
        General users should not use this function.
        
[Internal function] Create an annotation from a node
General users should not use this function.
[ Internal function ] Create an annotation from a node General users should not use this function .
def _add_annotation_xml(self, annotation_node) -> ELANAnnotation:
        alignable = annotation_node.find('ALIGNABLE_ANNOTATION')
        if alignable is not None:
            return self.add_alignable_annotation_xml(alignable)
        else:
            ref_ann_node = annotation_node.find('REF_ANNOTATION')
            if ref_ann_node is not None:
                return self.add_ref_annotation_xml(ref_ann_node)
            else:
                raise ValueError("ANNOTATION node must not be empty")
def _add_annotation_xml ( self , annotation_node ) -> ELANAnnotation : alignable = annotation_node . find ( 'ALIGNABLE_ANNOTATION' ) if alignable is not None : return self . add_alignable_annotation_xml ( alignable ) else : ref_ann_node = annotation_node . find ( 'REF_ANNOTATION' ) if ref_ann_node is not None : return self . add_ref_annotation_xml ( ref_ann_node ) else : raise ValueError ( "ANNOTATION node must not be empty" )
[Internal function] Create an annotation from a node
General users should not use this function.
[ Internal function ] Create an annotation from a node General users should not use this function .
""" [Internal function] Create an annotation from a node
        
        General users should not use this function.
        """
self
annotation_node