texttaglib/elan.py
def _add_tier_xml(self, tier_node) -> ELANTier:
        ''' [Internal function] Parse a TIER XML node, create an ELANTier object and link it to this ELANDoc

        General users should not use this function.
        '''
        type_ref = tier_node.get('LINGUISTIC_TYPE_REF')
        participant = tier_node.get('PARTICIPANT')
        tier_id = tier_node.get('TIER_ID')
        parent_ref = tier_node.get('PARENT_REF')
        default_locale = tier_node.get('DEFAULT_LOCALE')
        tier = ELANTier(type_ref, participant, tier_id, doc=self, default_locale=default_locale, parent_ref=parent_ref)
        if tier_id in self.__tiers_map:
            raise ValueError("Duplicated tier ID ({})".format(tier_id))
        self.__tiers_map[tier_id] = tier
        if tier.parent_ref is None:
            self.__roots.append(tier)
        return tier
 [Internal function] Parse a TIER XML node, create an ELANTier object and link it to this ELANDoc

        General users should not use this function.
        
[Internal function] Parse a TIER XML node, create an ELANTier object and link it to this ELANDoc
General users should not use this function.
[ Internal function ] Parse a TIER XML node create an ELANTier object and link it to this ELANDoc General users should not use this function .
def _add_tier_xml(self, tier_node) -> ELANTier:
        type_ref = tier_node.get('LINGUISTIC_TYPE_REF')
        participant = tier_node.get('PARTICIPANT')
        tier_id = tier_node.get('TIER_ID')
        parent_ref = tier_node.get('PARENT_REF')
        default_locale = tier_node.get('DEFAULT_LOCALE')
        tier = ELANTier(type_ref, participant, tier_id, doc=self, default_locale=default_locale, parent_ref=parent_ref)
        if tier_id in self.__tiers_map:
            raise ValueError("Duplicated tier ID ({})".format(tier_id))
        self.__tiers_map[tier_id] = tier
        if tier.parent_ref is None:
            self.__roots.append(tier)
        return tier
def _add_tier_xml ( self , tier_node ) -> ELANTier : type_ref = tier_node . get ( 'LINGUISTIC_TYPE_REF' ) participant = tier_node . get ( 'PARTICIPANT' ) tier_id = tier_node . get ( 'TIER_ID' ) parent_ref = tier_node . get ( 'PARENT_REF' ) default_locale = tier_node . get ( 'DEFAULT_LOCALE' ) tier = ELANTier ( type_ref , participant , tier_id , doc = self , default_locale = default_locale , parent_ref = parent_ref ) if tier_id in self . __tiers_map : raise ValueError ( "Duplicated tier ID ({})" . format ( tier_id ) ) self . __tiers_map [ tier_id ] = tier if tier . parent_ref is None : self . __roots . append ( tier ) return tier
[Internal function] Parse a TIER XML node, create an ELANTier object and link it to this ELANDoc
General users should not use this function.
[ Internal function ] Parse a TIER XML node create an ELANTier object and link it to this ELANDoc General users should not use this function .
''' [Internal function] Parse a TIER XML node, create an ELANTier object and link it to this ELANDoc

        General users should not use this function.
        '''
self
tier_node