def tf_idf(self, tf_matrix, idf_matrix) -> dict:
    tf_idf_matrix = {}
    for ((sent1, f_table1), (sent2, f_table2)) in zip(tf_matrix.items(), idf_matrix.items()):
        tf_idf_table = {}
        for ((word1, value1), (word2, value2)) in zip(f_table1.items(), f_table2.items()):
            tf_idf_table[word1] = float((value1 * value2))
        tf_idf_matrix[sent1] = tf_idf_table
    return tf_idf_matrix
def tf_idf(self, tf_matrix, idf_matrix) -> dict:
    tf_idf_matrix = {}
    for ((sent1, f_table1), (sent2, f_table2)) in zip(tf_matrix.items(), idf_matrix.items()):
        tf_idf_table = {}
        for ((word1, value1), (word2, value2)) in zip(f_table1.items(), f_table2.items()):
            tf_idf_table[word1] = float((value1 * value2))
        tf_idf_matrix[sent1] = tf_idf_table
    return tf_idf_matrix