@staticmethod
    def _segmentation_indices(annotation):
        cur_len = 0
        for a in annotation[:-1]:
            cur_len += len(a)
            yield cur_len
Method to transform a annotation into a tuple of split indices
dataset/ETHPy150Open aalto-speech/morfessor/morfessor/evaluation.py/MorfessorEvaluation._segmentation_indices