mmax2conll/mmax2conll/mmax_document_readers.py
def extract_items(self, xml):
        """
        Extract and optionally validate a sequence of sentence items sorted by
        position, which is taken from the ID.
        """
        items = super(SoNaRSentencesDocumentReader, self).extract_items(xml)
        items = sorted(items, key=lambda s: self.pos_from_sentence_ID(s['id']))
        if self.validate:
            self.validate_sentence_spans(items)
        return items

        Extract and optionally validate a sequence of sentence items sorted by
        position, which is taken from the ID.
        
Extract and optionally validate a sequence of sentence items sorted by
position, which is taken from the ID.
Extract and optionally validate a sequence of sentence items sorted by position which is taken from the ID .
def extract_items(self, xml):
        items = super(SoNaRSentencesDocumentReader, self).extract_items(xml)
        items = sorted(items, key=lambda s: self.pos_from_sentence_ID(s['id']))
        if self.validate:
            self.validate_sentence_spans(items)
        return items
def extract_items ( self , xml ) : items = super ( SoNaRSentencesDocumentReader , self ) . extract_items ( xml ) items = sorted ( items , key = lambda s : self . pos_from_sentence_ID ( s [ 'id' ] ) ) if self . validate : self . validate_sentence_spans ( items ) return items
Extract and optionally validate a sequence of sentence items sorted by
position, which is taken from the ID.
Extract and optionally validate a sequence of sentence items sorted by position which is taken from the ID .
"""
        Extract and optionally validate a sequence of sentence items sorted by
        position, which is taken from the ID.
        """
self
xml