From my understanding of naive bayes (multinomial edition), it has to deal with the count of the word for each class and the total count of all words in the class for the following part of the formula, so I am a tad confused:
P(word|class)=(word_count_in_class + 1)/(total_words_in_class+total_unique_words_in_class)
[link][9 comments]