Fixed a bug in tagAllSentences() in LearnerUtility