Updated text predictor
Updated transition matrix construction