How to implement TF_IDF feature weighting with Naive Bayes
问题 I'm trying to implement the naive Bayes classifier for sentiment analysis. I plan to use the TF-IDF weighting measure. I'm just a little stuck now. NB generally uses the word(feature) frequency to find the maximum likelihood. So how do I introduce the TF-IDF weighting measure in naive Bayes? 回答1: You can visit the following blog shows in detail how do you calculate TFIDF. 回答2: You use the TF-IDF weights as features/predictors in your statistical model. I suggest to use either gensim [1]or