mmax2conll/mmax2conll/mmax_item_readers.py
def read(self, xml):
        """
        Extract a dictionary with information about a coreference from an
        XML-element.

        The dictionary contains everything returned by MMAXMarkableReader.read
        and 'head'. If `self.extract_mod(xml) is not None` the dictionary also
        contains 'ref', 'level', 'type', 'time' and 'mod'.
        """
        dic = super(MMAXCorefReader, self).read(xml)
        dic.update(
            head=self.extract_head(xml)
        )
        ref = self.extract_ref(xml)
        if ref is not None:
            dic.update(
                ref=ref,
                level=self.extract_level(xml),
                type=self.extract_type(xml),
                time=self.extract_time(xml),
                mod=self.extract_mod(xml)
            )
        return dic

        Extract a dictionary with information about a coreference from an
        XML-element.

        The dictionary contains everything returned by MMAXMarkableReader.read
        and 'head'. If `self.extract_mod(xml) is not None` the dictionary also
        contains 'ref', 'level', 'type', 'time' and 'mod'.
        
Extract a dictionary with information about a coreference from an
XML-element.

The dictionary contains everything returned by MMAXMarkableReader.read
and 'head'.
Extract a dictionary with information about a coreference from an XML - element . The dictionary contains everything returned by MMAXMarkableReader . read and ' head ' .
def read(self, xml):
        dic = super(MMAXCorefReader, self).read(xml)
        dic.update(
            head=self.extract_head(xml)
        )
        ref = self.extract_ref(xml)
        if ref is not None:
            dic.update(
                ref=ref,
                level=self.extract_level(xml),
                type=self.extract_type(xml),
                time=self.extract_time(xml),
                mod=self.extract_mod(xml)
            )
        return dic
def read ( self , xml ) : dic = super ( MMAXCorefReader , self ) . read ( xml ) dic . update ( head = self . extract_head ( xml ) ) ref = self . extract_ref ( xml ) if ref is not None : dic . update ( ref = ref , level = self . extract_level ( xml ) , type = self . extract_type ( xml ) , time = self . extract_time ( xml ) , mod = self . extract_mod ( xml ) ) return dic
Extract a dictionary with information about a coreference from an
XML-element.
Extract a dictionary with information about a coreference from an XML - element .
"""
        Extract a dictionary with information about a coreference from an
        XML-element.

        The dictionary contains everything returned by MMAXMarkableReader.read
        and 'head'. If `self.extract_mod(xml) is not None` the dictionary also
        contains 'ref', 'level', 'type', 'time' and 'mod'.
        """
self
xml