I'm working on classifying invoices and receipt and I will be working with Bernoulli model.
This is the naive Bayes classifier :
P(c|x) = P(x|c) x P(c) / P(x)
I know how to compute P(c) class prior probability and since we assume that all the words are independent we don't need the P(x).
Now formula will be like this : P(c|x) = P(x|c) x P(c) and to compute P(x|c) we do the liklihood method which is calculating all the words probability P(c|X) = P(x1|c)P(x2|c)*P(x3|c)....
My question is after calculating the liklihood do I need to multiply it with P(c) or not, P(c|X) = P(x1|c)P(x2|c)*P(x3|c)...*P(c)?