Consider the problem of obtaining a sequence of part-of-speech (POS) tags t=(t1,…,tℓ) for a given natural language sentence (word sequence) w=(w1,…,wℓ). For example, for the following four-word sentence
(w1,w2,w3,w4)=(John,wrote,a,book),
our goal is to output the following POS tag sequence.
(t1,t2,t3,t4)=(NOUN,VERB,DET,NOUN)
In this example, NOUN, VERB, and DET are POS tags, denoting noun, verb, and determiner, respectively. W is a finite set of all words, and T is a finite set of all POS tags. Suppose that a POS-tagged corpus D={(w(k),t(k))∣k∈{1,…,N}} (w(k) is a k-th sentence in D, t(k) is its POS tag sequence, and N>0 is the number of elements in D) is given as training data. In the following, for a word sequence w=(w1,…,wℓ), its length ℓ is represented as ∣w∣.
Answer the following questions.
(1) Consider the probability pu(t∣w) for assigning a POS tag t∈T to a word w∈W, and define the probability function pu(t∣w) for assigning a POS tag sequence t to a word sequence w as follows.
pu(t∣w)≡i=1∏∣w∣pu(ti∣wi)
Supposing each element of training data D is independently distributed following pu(t∣w), answer a method for computing the maximum likelihood estimate of pu(t∣w).
(2) Assume that pu(t∣w) is given for each w∈W,t∈T. Describe an algorithm to obtain a POS tag sequence t that maximizes pu(t∣w) for an input sentence w.
(3) Consider the probability pb(t∣v,w) for assigning a POS tag t∈T to a word w∈W when a word v∈W immediately precedes w in a sentence. Note that v is considered as a special word <s> when w is the first word of the sentence. The probability function pb(t∣w) is defined as follows.
Supposing each element of training data D is independently distributed following pb(t∣w), answer a method for computing the maximum likelihood estimate of pb(t∣v,w).
Also, assuming that pb(t∣v,w) is given for each v∈W∪{<s>},w∈W,t∈T, describe an algorithm to obtain a POS tag sequence t that maximizes pb(t∣w) for an input sentence w.
(4) Explain why POS tagging using hidden Markov models is expected to attain higher accuracy than the methods described in questions (1) to (3). You must describe the definition of hidden Markov models and the POS tagging algorithm using hidden Markov models, and provide an explanation including an example where the methods described in questions (1) to (3) output a wrong POS tag but the POS tagging using hidden Markov models outputs a correct POS tag.