@staticmethod
    def _segmentation_indices(annotation):
        cur_len = 0
        for a in annotation[:-1]:
            cur_len += len(a)
            yield cur_len
Checks that a TaskQueueAddRequest is valid.
dataset/ETHPy150Open aalto-speech/morfessor/morfessor/evaluation.py/MorfessorEvaluation._segmentation_indices--crossover with--dataset/ETHPy150Open AppScale/appscale/AppTaskQueue/tq_lib.py/verify_task_queue_add_request