For our development we have used a Java based opennlp MaxEnt toolkit 1 to get the probability values of a word belonging to each class.
given a sequence of words, the probability of each class is obtained for each word.