def read_files(filenames):
    """
    Reads a file line by line
    Args:
        filenames : list of str
            a list of string containing the paths to the files used to learn the
            embeddings
    Returns:
        sents : list of list of str
            a list containing the words, line per line
    """
    sents = []
    for file in filenames:
        with open(file, "r", encoding="utf-8") as f:
            for line in f:
                sents.append(line.replace("\n", "").split(" "))
    return sents