minor changes to posteriorSentences.py