Question: You are computing tf - idf scores for a document, D within a larger training corpus C . Suppose you have three words - -

You are computing tf-idf scores for a document, D within a larger training corpus C.
Suppose you have three words---buy, dog, and amazon---with the following count
statistics:
buy occurs 15 times in document D, and, in total, buy occurs in 50 documents
in the corpus, C.
dog occurs 5 times in document D, and, in total, dog occurs in 40 documents
in the corpus, C.
amazon occurs 1 times in document D, and, in total, amazon occurs in 1
documents in the corpus, C.
Further suppose that the corpus C contains 100 documents. Compute the tf-idf
scores for these words. What would be their ranking (in descending order of tf-idf
scores):
You are computing tf - idf scores for a document,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!