def get_text_segments(self):
        return self.segments.all().order_by('offset')

    ### Methods used for preprocess ###
Returns the iterable of TextSegments, sorted by offset
dataset/ETHPy150Open machinalis/iepy/iepy/data/models.py/IEDocument.get_text_segments