An idf is continual per corpus, and accounts with the ratio of documents which include the word "this". Within this case, Now we have a corpus of two documents and all of them include the phrase "this".log N n t = − log n t N displaystyle log frac N n_ t =-log frac n_ t N Once you added the required changes, strike the Export the document