This code is a part of bayesian classifier application with python. I\'m trying to calculate probability of each word with respect to each class. word_prob
word_prob