I do not fully understand how to use the start and end states in the Hidden Markov Model. Are these necessary in order to design and implement the transition and emission matrices?
The start/end states are necessary for modeling whether a tag is likely to come at the beginning or end of a sentence.
For example, if you had a five-word sentence and you were considering two taggings
Both of these look pretty good in terms of transitions because Det->Noun and Det->Adj are both very likely. BUT, it is much less for a sentence to end in an Adj than a Noun, something that you would not get without an end tag. So what you really want to compare is
Then you will be computing P(END|Noun) and P(END|Adj).
If you're doing supervised training, then getting the probabilities with START/END is no different than the other tags, you just have to append the special tags to each sentence before counting. So if your training corpus has:
Det Noun Verb
Det Noun Verb Det Noun
Then you would modify it to be
START Det Noun Verb END
START Det Noun Verb Det Noun END
And compute, for example:
Also, emissions are trivial: P(START|START)=1 and P(END|END)=1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With