import re


def extract_ids(path: str) -> list:
    """
    Read a list of sentences on CoNLL-U format and return the list
    of sentence's ids.

    Parameters
    ----------
    path: str
        Path to input CoNLL-U file.

    Returns
    -------
    list:
        List of ids.
    """

    ids = []
    conllu_sentence_id_regex = r"sent_id = (dante_01_.*)"

    with open(path, "r") as conllu_file:
        conllu_data = conllu_file.read()
        ids = re.findall(conllu_sentence_id_regex, conllu_data)

    return ids