Question: Using the below list, I need help creating some HMM models and predicting which model works best. list = [ [ ( the

Using the below list, I need help creating some HMM models and predicting which model works best.
list =[[("the", "det"),("further", "adv"),("which", "det"),("constructed", "verb"),("report", "noun")],[("been", "verb"),("judge", "noun"),("pastor", "noun"),("the", "det"),("in", "adj"),("was", "verb")],[("that", "adp"),("to","prt"),("and", "conj"),("johnson", "noun"),("it", "pron"),("jury", "noun)]]
Use sklearn to split the list above.
Use NLTK lidestoneProbDist, MLEProbDist, and ELEProbDist to create hmm models and train_supervised method from HiddenMarkovModel trainer to pass the training set.
Use best_path function to predict the tags from the test dataset from above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!