def compute_TF(doc_info):
    """
    tf = (frequency of the term in the doc/total number of terms in the doc)
    """
    tf_scores = []

    for idx, doc in enumerate(doc_info):
        tf_score_table = {}
        for word in doc['freq_dict'].keys():
            count = doc['freq_dict'][word]
            tf_score_table[word] = count/doc_info[idx]['doc_length']
        tf_scores.append(tf_score_table)

    return tf_scores