def get_entity_occurrences(self):
        return self.entity_occurrences.all().order_by('offset')
Returns an iterable of EntityOccurrences, sorted by offset
dataset/ETHPy150Open machinalis/iepy/iepy/data/models.py/IEDocument.get_entity_occurrences