def get_abstract_document_topic_matrix(filename):
    """
    This script is used to read the Abstract-Document-Topic Matrix
    :param filename: path of the matrix file
    :return: a dictionary where every key is a paper id and every associated element is a list with values
    """
    ris = {}
    with open(filename, "r", encoding="utf-8") as input_file:
        lines = input_file.readlines()[1:]

    for line in lines:
        line_splitted = line[:-1].split(",")
        ris[line_splitted[0]] = [float(x) for x in line_splitted[1:]]

    return ris