The only complication is that resampling a tag changes the identity of three trigrams at once, and we must account for this in computing its conditional distribution.
perhaps the most well-known is that of Merialdo (1994), who used MLE to train a trigram hidden Markov model (HMM).