hi..i m in a doubt... i need to calculate term frequency of term in a document... what i did is simply just " counted the no of times that term appears in that document"...if that term appeared say 138 times i took the tf value as 138....m i doing right..?? as i read somewhere that termfrequency (tf)= term count/ no of words in the document...if this is true den how do i calculate the no of words in a document..is der some regex for it???
pls do reply..thank u