getSentenceLengthProbabilities function

Add some comment