read training file as trigram