Sir used in the formula in the denominator : Summation of " d belonging to c "
as the total number of docs belonging to class C.
Shouldn’t be it the total number of words in each document belonging to class C because it feels like a specific term in a document can outnumber the total number of documents which will make Num > Den
If " tf( t, d) " represents NORMALIZED TERM FREQ. then only this is formula seems correct.