Open mounir4023 opened 4 years ago
This is a non NLTK python code that deals with that matter https://github.com/zachguo/HMM-Trigram-Tagger/blob/master/HMM.py
Another code sample https://github.com/Mengmeiivy/trigram-HMM/blob/master/English_trigram.py
NLTK.tag.hmm source code https://www.nltk.org/_modules/nltk/tag/hmm.html
Using the FreqDist and ConditionalFreqDist from NLTK, build the uni-gram bi-gram and trig-gram models for both words and tags.