For a term i in document j, the correct formula to calculate the TF-IDF is:
w_i,j = tf_i,j * log(N/df_i)
when:
tf_i,j - number of occurrences of i in j
df_i - number of documents containing i
N - total number of documents
For a term i in document j, the correct formula to calculate the TF-IDF is:
w_i,j = tf_i,j * log(N/df_i)
when:
tf_i,j - number of occurrences of i in j
df_i - number of documents containing i
N - total number of documents
* השאלה נוספה בתאריך: 25-03-2024