calculateSentenceProb fixed