naive bayes coded in python for document-level sentiment classification