@staticmethod
def _segmentation_indices(annotation):
    """Method to transform a annotation into a tuple of split indices"""
    cur_len = 0
    for a in annotation[:-1]:
        cur_len += len(a)
        yield cur_len
