<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:ns2="http://www.tei-c.org/ns/Examples">
    <teiHeader>
        <fileDesc>
            <titleStmt>
                <title>HMM Based Chunker for Hindi</title>
            </titleStmt>
        </fileDesc>
    </teiHeader>
    <text>
        <front>
            <div type="abs">
                <head>Abstract</head>
                <p>This paper presents an HMM-based chunk tagger for Hindi. Various tagging schemes for marking chunk boundaries are discussed along with their results. Contextual information is incorporated into the chunk tags in the form of partof-speech (POS) information. This information is also added to the tokens themselv es to achieve better precision. Error analysis is carried out to reduce the number of common errors. It is found that for certain classes of words, using the POS information is more effective than using a combination of word and POS tag as the token. Finally, chunk labels are also marked on the chunks.</p>
            </div>
        </front>
        <body>
            <div>
                <p/>
            </div>
            <div1>
                <head xml:id="sec1">Introduction</head>
                <div2>
                    <head xml:id="sec1.1">Motivation and Problem Statement</head>
                    <p>A robust chunker or shallow parser has emerged as an important component in a variety of NLP applications. It is employed in information extraction, named entity identification, search, and even in machine translation. While chunkers may be built using handcrafted linguistic rules, these tend to be fragile, need a relatively long time to develop because of many special cases, and saturate quickly. The task of chunking is ideally suited for machine learning because of robustness and relatively easy training.</p>
                    <p>A chunker or shallow parser identifies simple or non-recursive noun phrases, verb groups and simple adjectival and adverbial phrases in running text. In this work, the shallow parsing task has been broken up into two subtasks: first, identifying the chunk boundaries and second, labelling the chunks with their syntactic categories.</p>
                    <p>The first sub-problem is to build a chunker that takes a text in which words are tagged with part of speech (POS) tags as its input, and marks the chunk boundaries in its output. Moreover, the chunker is to be built by using machine learning techniques requiring only modest amount of training data. The second sub-problem is to label the chunks with their syntactic categories.</p>
                    <p>The presented work aims at building a chunker for Hindi. Hindi is spoken by approximately half a billion people in India. It is a relatively free word order language with simple morphology (albeit a little more complex than that of English). At present, no POS taggers or chunkers are available for Hindi.</p>
                </div2>
                <div2>
                    <head xml:id="sec1.2">Survey of Related Work</head>
                    <p>Chunking has been studied for English and other languages, though not very extensively. The earliest work on chunking based on machine learning goes to (Church K, 1988) for English. (Ramshaw and Marcus, 1995) used transformation based learning using a large annotated corpus for English. (Skut and Brants, 1998) modified Church’s approach, and used standard HMM based tagging methods to model the chunking process. (Zhou,et al., 2000) continued using the same methods, and achieved an accuracy of 91.99% precision and 92.25% recall using a contextual lexicon.</p>
                    <p>(Kudo and Matsumoto, 2001) use support vector machines for chunking with 93.48% accuracy for English. (Veenstra and Bosch, 2000) use memory based phrase chunking with accuracy of 91.05% precision and 92.03% recall for English. (Osborne, 2000) experimented with various sets of features for the purpose of shallow parsing.</p>
                    <p>In this work, we have used HMM based chunking. We report on a number of experiments showing the effect of different encoding methods on accuracy. Different encodings of the input show the effect of including either words only, POS tags only, or a combination thereof, in training. Their effect on transition probabilities is also studied. We do not use any externally supplied lexicon. Analogous to (Zhou,et al., 2000), we found that for certain POS categories, a combination of word and the POS category must be used in order to obtain good results. We report on detailed experiments which show the effect of each of these combinations on the accuracy. This experience can also be used to build chunkers for other languages. The overall accuracy reached for Hindi is 92.63% precision with 100% recall for chunk boundaries.</p>
                    <p>The rest of the paper is structured as follows. Section 2 discusses the problem formulation and reports the results of some initial experiments. In Section 3, we present a different representation of chunks which significantly increased the accuracy of chunking. In Section 4, we present a detailed error analysis, based on which changes in chunk tags are carried out. These changes increased the accuracy. Section 5 describes experiments on labelling of chunks using rule-based and statistical methods.</p>
                </div2>
            </div1>
            <div1>
                <head xml:id="sec2">Initial Experiments</head>
                <p>Given a sequence of words W n = ( w 1 ,w 2 ,···,w n ) ,w i ∈W , where W is the word set and the sequence of corresponding part of speech (POS) tags T n =( t 1 ,t 2 ,···,t where T is the POS set, aim n ) , t i ∈T tag the is to create most probable chunks of the sequence W n . The chunks are marked with chunk tag sequence C n = ( c chunk 1 ,c 2 ,···,c n ) where c i stands for the tag corresponding to each word w i , c i ∈C . C here is the chunk tag set which may consist of symbols such as STRT and CNT for each word marking it as the start or continuation of a chunk. In our experiment, we combine the corresponding words and POS tags to get a sequence of new tokens V n = ( v ,v where v i = ( w i ,t i ) ∈V . Thus 1 2 ,···,v the problem n ) is to find the sequence C n given the sequence of tokens V n which maximizes the probability P ( C n |V n )= P ( c 1 ,c 2 ,···,c n |v 1 ,v 2 ,···,v n (1) ) , which is equivalent to maximizing P ( V n ) P ( C n ) . We |C n assume that given the chunk tags, the tokens are statistically independent of each other and that each chunk tag is probabilistically dependent on the previous k chunk tags ( ( k +1) -gram model). Using chain-rule, the problem reduces to that of Hidden Markov Model (HMM) given by max c i ∈C n∏ P ( v i |c i ) P ( c i + k |c i ,···,c i + k− 1 ) i =1</p>
                <p>(2) where the probabilities in the first term are emission probabilities and in the second term are transition probabilities. The optimal sequence of chunk tags can be found using the Viterbi algorithm. For training and testing of HMM we have used the TnT system (Brants, 2000). Since TnT is implemented up to a tri-gram model, we use a second order HMM ( k =2 ) in our study.</p>
                <p>Before discussing the possible chunk sets and the token sets, we consider an example below. (( sher )) (( hiraN ke pIche ))</p>
                <p>lion deer of behind</p>
                <p>NN NN PREP PREP</p>
                <p>STRT STRT CNT CNT (( jangal meM )) (( bhAgA . ))</p>
                <p>forest in ran .</p>
                <p>NN PREP VB SYM</p>
                <p>STRT CNT STRT CNT</p>
                <p>In this example, the chunk tags considered are STRT and CNT where STRT indicates that the new chunk starts at the token which is assigned this tag and CNT indicated that the token which is assigned this tag is inside the chunk. We refer to this as 2-tag scheme. Under second-order HMM, the prediction of chunk tag at i th token is conditional on the only two previous chunk tags. Thus in the example, the fact that the chunk terminates at the word pIche (behind) with the POS tag PREP is not captured in tagging the token jangal (forest). Thus, the assumptions that the tokens given the chunk tags are independent restricts the prediction of subsequent chunk tags. To overcome this limitation in using TnT, we experimented with additional chunk tags.</p>
                <p>We first considered a 3-tag scheme by including an additional chunk tag STP which indicates end of chunk. It was further extended to a 4tag scheme by including one more chunk tag tokens is given below.</p>
                <p>((sher ))((hiraN ke pIche))...</p>
                <p>lion deer of behind...</p>
                <p>NN NN PREP PREP... Token:sher_NN 2-tag:STRT hiran_NN STRT ke_PREP CNT pIche_PREP CNT ...</p>
                <p>The annotated data set contains Hindi texts of 200,000 words. These are annotated with POS tags, and chunks are marked and labelled (NP, VG, JJP, RBP, etc). This annotated corpus was prepared at IIIT Hyderabad from funds provided by HP Labs. The POS tags used in the corpus are based on the Penn tag set. Hewever, there are a few additional tags for compound nouns and verbs etc.</p>
                <p>Out of the total annotated data, 50,000 tokens were kept aside as unseen data. A set of 150,000 tokens was used for training the different HMM representations. This set converted into the appropriate format based on the representation being used. 20,000 tokens of the unseen data were used for development testing. Table 1: Initial Results of Chunking (% Precision)</p>
                <p>The initial results using various tag sets and token sets are presented in Table 1. The first three rows show the raw scores of different tagging schemes. To compare across the different schemes, the output were converted to the reduced chunk tag sets which are denoted by 4 → 3, 4 → 2and 3 → 2 in the table. This ensures that the measurement metric is the same no matter which tagging scheme is used, thus allowing us to compare across the tagging schemes. The last three rows show the result of using</p>
                <p>It should be noted that converting from the 4 tag set to 3 or 2 tags results in no loss in information. This is because it is trivial to convert fromt the 2-tag set to the corresponding 4-tag set and vice-versa. Even though the information content in the 3 different chunk tag representations is the same, using higher tag scheme for training and then later converting back to 2-tags results in a significant improvement in the precision of the tagger. For example, in the case where we took original precision was 73.64%. When precision was measured by reducing the tag set to 3 tags, we obtained a precision of 79.56%. Four tags reduced to two gave the highest precision of 85.6%. However, these differences may be interpreted as the result of changing the measurement metric. This figure of 85.6% may be compared with a precision of 81.85% obtained when the 2-tag set was used. Recall in all the cases was 100%.</p>
            </div1>
            <div1>
                <head xml:id="sec3">Incorporating POS Context in Output Tags</head>
                <p>We attempted modification of chunk tags using contextual information. The new output tags considered were a combination of POS tags and chunk tags using any one of the chunk tag schemes discussed in the earlier section. The new format of chunk tags considered was POS:ChunkT ag, which is illustrated for 2-tag scheme in the example below.</p>
                <p>(( sher )) (( hiraN ke ...</p>
                <p>lion deer of ...</p>
                <p>NN NN PREP ... Token: 2-tag: NN:STRT sher_NN NN:STRT hiran_NN ke_PREP... PREP:CNT...</p>
                <p>The tokens (V) were left unchanged. Our intention in doing this was to bring in a finer degree of learning. By having part of speech information in the chunk tag, the information about the POS-tag of the previous word gets incorporated in the transition probabilities. In the earlier chunk schemes, this information was lost due to the assumption of independence of tokens given chunk tags. In other words, part of speech information would now influence both the transition and emission probabilities of the model instead of just the emission probabilities.</p>
                <p>We carried out the experiment with these modified tags. Based on the results in Table 1 for various tokens, we restricted our choice of tokens to tags with chunk tags, the 4-tag scheme was used. The accuracy with 4-tag scheme was 78.80% and for 4 → 2 scheme, it turned out to be 88.63%. This was a significant improvement.</p>
            </div1>
            <div1>
                <head xml:id="sec4">Error Analysis and Further Enhancements</head>
                <p>We next carried out the error analysis on the results of the last experiment. We looked at which type of words were resulting in the maximum errors, that is, we looked at the frequencies of errors corresponding to the various part of speech. These figures are given in Table 2. On doing this analysis we found that a large number of errors were associated with NN (nouns), VFM (finite verbs) and JJ (adjectives). Most of these errors were coming in possibly because of sparsity of the data. Hence we removed the word information from these types of input tokens and left only the POS tag. This gave us an improved precision of 91.04%. Further experiments were carried out on the Token and POSTag:ChunkTag as Output Tag the other POS tags. Experiments were done to see what performed better -a combination of word and POS tag or the POS tag alone. It was found that seven groups of words - PRP, QF (quantifiers), QW, RB (adverbs), VRB, VAUX (auxillary verbs) and RP (particles) performed better with a combination of word and POS tag as the token. All the other words were replaced with their POS tags.</p>
                <p>An analysis of the errors associated with punctuations was also done. It was found that the set of punctuations { ! : ? , ’ } was better at mark- ing chunks than other symbols. Therefore, these punctuations were kept in the tokens while the other symbols were reduced to a common marker (SYM).</p>
                <p>After performing these steps, the chunker was tested on the same testing corpus of 20,000 tokens. The precision achieved was 92.03% with a recall of 100% for the development testing data. Table 3 gives the stepwise summary of results of this experiment. The first coloumn of the table gives different token sets described above. Error Table 3: Stepwise Summary of Results for Identifying Chunk Boundaries analysis of this experiment is given in Table 4. On comparing with Table 2, it may be seen that the number of errors associated with almost all the POS types has reduced significantly , thereby resulting in the improved precision. Table 4: Error Analysis II</p>
            </div1>
            <div1>
                <head xml:id="sec5">Chunk Labels</head>
                <p>Once the chunk boundaries are marked, the next task is to classify the chunk. In our scheme there are 5 types of chunks - NP (noun phrase), VG (verb group), JJP (adjectival phrase) RBP (adverbial phrase) and BLK (others). We tried two methods for deciding chunk labels. One was based on machine learning while the other was based on rules.</p>
                <div2>
                    <head xml:id="sec5.1">HMM Based Chunk Labelling</head>
                    <p>In this method, the chunk boundary tags are augmented with the chunk labels while learning. For example, the tags for the last token in a chunk could have additional information in the form of the chunk label.</p>
                    <p>(( sher )) (( hiraN ke lion deer of NN NN PREP Token: 2-tag: sher_NN NN:STRT#NP hiran_NN NN:STRT ke_PREP PREP:CNT</p>
                    <p>pIche )) (( jangal meM )) ... behind forest in PREP NN PREP Token: 2-tag: PREP:CNT#NP pIche_PREP NN:STRT jangal_NN meM_PREP PREP:CNT#NP</p>
                    <p>Three schemes for putting chunk labels in the tags were tried.</p>
                    <p>• Scheme 1: The token at the start of the chunk</p>
                    <p>was marked with the chunk label.</p>
                    <p>• Scheme 2: All the tokens were marked with</p>
                    <p>the chunk labels.</p>
                    <p>• Scheme 3: The token at the end of the chunk</p>
                    <p>was marked with the chunk label. (See ex-</p>
                    <p>ample above. ) The best results were obtained with scheme 3, which when reduced to the common metric of 2tags only gave a precision of 92.15% (for chunk boundaries only) which exceeded the result for chunk boundaries alone (92.03%). The accuracy for scheme 3 with the chunk boundaries and chunk labels together was 90.16%. The corresponding figures for scheme 1 were 91.70% and 90.00%, while for scheme 2 they were 92.02% and 88.05%.</p>
                </div2>
                <div2>
                    <head xml:id="sec5.2">Rules Based Chunk Labels</head>
                    <p>Since there are only five types of chunks, it turns out that the application of rules to find out the chunk-type is very effective and gives good results. An outline of the algorithm used for the purpose is given below. • For each chunk, find the last token t i whose POS does not belong to the set { SYM, RP, CC, PREP, QF } . (Such tags do not help in classifying the chunks.) • If t i is a noun/pronoun, verb, adjective or ad- verb, then label the chunk as NP, VG, JJP or RBP respectively. • Otherwise, label the chunk as BLK. In our experiments, we found that over 99% of the chunks identified were given the correct chunk labels. Thus, the best method for doing chunk boundary identification is to train the HMM with both boundary and syntactic label information together (as given in Section 6.1). Now given a test sample, the trained HMM can identify both the chunk boundaries and labels. The chunk labels are then dropped to obain data marked with chunk boundaries only. Now rule based labelling is applied ( with an accuracy of over 99%) yielding a precision of 91.70% (test set) for the composite task. Table 5: Summary of Chunk Labelling</p>
                    <p>for Prec-2 - Precision for Chunk Boundaries and Chunk Labels</p>
                </div2>
            </div1>
            <div1>
                <head xml:id="sec6">Conclusions</head>
                <p>In this paper, we have studied HMM based chunking for Hindi. We tried out several schemes for chunk labels and input tokens. We found that for a certain type of words (function words), word information along with POS information gave better precision. A similar differentiation was done for punctuations. We tried several methods to classify the chunks and found that a simple rulebased approach gave the best results. The final precision we got was 92.63% for chunk boundary identification task and 91.70% for the composite task of chunk labelling with a recall of 100%.</p>
                <p>This paper raises the issue that if there are two tag sets T 1 and a more finely differentiated set T 2 , then T 2 might give better accuracy than T 1 , pro- vided the errors are measured using the same metric (say, using the T 1 set). This, we believe, is likely to happen, when T 2 is more finely and ap- propriately differentiated. The most striking example was where T 1 consisted of chunk bound- aries and T 2 consisted of boundaries and labels. Training with T 2 outperformed T 1 for the bound- ary task, even though it did not perform very well in the labelling task. References Steven Corpus-Based Abney. 1996. Methods Tagging Language and Partial Parsing. Publishers, in Dordrecht and Speech. Kluwer Academic (1996) Thorsten Brants. Proceedings 2000. TnT - A Statistical Part-of- Speech Tagger Natural Language of the Processing sixth conference on Applied (2000)</p>
                <p>224–231 K. Church. 1988. A Stochastic Parts Program Proceed- and Noun Phrase Second Parser Conference for Unrestricted Text. ings of Processing (1988) 136–143 on Applied Natural Lan- guage Taku Kudo and Yuji Matsumoto. 2001. Proceedings Chunking NAACL with Support (2001) Vector 1013–1015 Machines. of 2001 Miles Osborne 2000. Proceedings Shallow Parsing CoNLL-2000 as Part- of-Speech (2000) Tagging. of . Lance A. Ramshaw, and Mitchell P. Marcus. 1995.</p>
                <p>Text Chunking Proceedings Using Transformation-Based Learn- ing. Large Corpora (1995) of 88–94 the 3rd Workshop on Very W. Recognition Skut and T. Brants of Noun 1998. Phrases. Chunk ESSLLI-1998 Tagger, Statistical (1998) Zhou, GuoDong, Jian Su and Proceedings TongGuan Tey CoNLL- 2000. Hybrid Text LLL-2000 Chunking. (2000) 163–165. of 2000 and Jorn Classifier Veenstra Memory-Based and Antal van den Phrase Bosch Chunking. 2000. Single- CoNLL-2000 LLL-2000 Pro- 157–159. ceedings of and (2000)</p>
            </div1>
        </body>
        <back/>
    </text>
</TEI>
