Generates transition matrices from training data for hidden Markov model part of speech taggers.