In [1]:
from hmm_model import Hmm_model
In [2]:
h = Hmm_model("train.txt")
In [13]:
h.train()
In [12]:
h.tag_sentence("preacher near the mosque killed the terrorist man living next to Syrian border in Baghdad .")
In [ ]:
h.state_trans_prob
In [ ]:
h.prior_prob
In [ ]:
h.emission_prob