Added method to classDef to get probability of a given sentence