def hyps2verses(ids, eos, eot):
    """
    Split the list of hypens in different lists, separated
    by the sep token.
    :param ids: a list of hyphen' ids
    :param eos: the separator token (INT) (id corresponding to <EOS>)
    :return: a list of verses, each verse is a list of syllables
    """

    verses = [[]]
    for id in ids:
        if id == eot:
            break
        elif id == eos:
            verses.append([])
        else:
            verses[-1].append(id)

    if len(verses[-1]) < 1:
        verses = verses[:-1]

    return verses