mmax2conll/mmax2conll/mmax_item_readers.py
def extract_ref(self, xml):
        """
        Extract the referred markable id from an XML-element.

        Return None if the attribute does not exist.
        """
        ref = xml.attrib.get(self.ref_attr, None)
        if ref == self.empty_ref_value:
            ref = None
        return ref

        Extract the referred markable id from an XML-element.

        Return None if the attribute does not exist.
        
Extract the referred markable id from an XML-element.
Return None if the attribute does not exist.
Extract the referred markable id from an XML - element . Return None if the attribute does not exist .
def extract_ref(self, xml):
        ref = xml.attrib.get(self.ref_attr, None)
        if ref == self.empty_ref_value:
            ref = None
        return ref
def extract_ref ( self , xml ) : ref = xml . attrib . get ( self . ref_attr , None ) if ref == self . empty_ref_value : ref = None return ref
Extract the referred markable id from an XML-element.
Extract the referred markable id from an XML - element .
"""
        Extract the referred markable id from an XML-element.

        Return None if the attribute does not exist.
        """
self
xml