<?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>A Classification-based Algorithm for Consistency Check of Part-of-Speech Tagging for Chinese Corpora</title>
            </titleStmt>
        </fileDesc>
    </teiHeader>
    <text>
        <front>
            <div type="abs">
                <head>Abstract</head>
                <p>Ensuring consistency of Part-of-Speech (POS) tagging plays an important role in constructing high-quality Chinese corpora. After analyzing the POS tagging of multi-category words in largescale corpora, we propose a novel consistency check method of POS tagging in this paper. Our method builds a vector model of the context of multicategory words, and uses the k -NN algorithm to classify context vectors constructed from POS tagging sequences and judge their consistency. The experimental results indicate that the proposed method is feasible and effective.</p>
            </div>
        </front>
        <body>
            <div>
                <p/>
            </div>
            <div1>
                <head xml:id="sec1">Introduction</head>
                <p>Constructing high-quality and large-scale corpora has always been a fundamental research area in the field of Chinese natural language processing. In recent years, the rapid development in the fields of machine translation (MT), phonetic recognition (PR), information retrieval (IR), web text mining, and etc., is demanding more Chinese corpora of higher quality and larger scale. Ensuring consistency of Part-of-Speech (POS) tagging plays an important role in constructing highquality Chinese corpora. In particular, we focus on consistency check of the POS tagging of multi-tagging words, which consist of same Chinese characters and are near-synonymous, but To whom correspondence should be addressed. have different grammatical functions. No matter how many different POS tags a multi-category words may be tagged, ensuring consistency of POS tagging means to assign the multi-category word with the same POS tag when it appears in similar context.</p>
                <p>Novel approaches and techniques have been proposed for automatic rule-based and statisticsbased POS tagging, and the “state-of-the-art” approaches achieve a tagging precision of 89% and 96%, respectively. A great portion of the words appearing in Chinese corpora are multi-category words. We have studied the text data from the 2M-word Chinese corpus published by Peking University, and statistics show that multi-category words cover 11% of the words, while the percentage of the occurrence of multi-category words is as high as 47%. When checking the POS tags, human experts may have disagreements or make mistakes in some cases. After analyzing 1,042 sentences containing the word “ Ā催ā ”, which are extracted from the 2M-word Chinese corpus of Peking University, the number of incorrect tags fortheword“ Ā催ā ” is 15, which accountsfor around 1.3%.</p>
                <p>So far in the field of POS tagging, most of the works have focused on novel algorithms or techniques for POS tagging. There are only a limited number of studies has focused on consistency check of POS tagging. Xing (Xing, 1999) analyzed the inconsistency phenomena of word segmentation (WS) and POS tagging. Qu and Chen (Qu and Chen, 2003) improved the corpus quality by obtaining POS tagging knowledge from processed corpora, preprocessing, and checking consistency with methods based on rules and statistics. Qian and Zheng (Qian and Zheng, 2003; Qian and Zheng, 2004) introduced a rule-based consistency check method that obtained POS tagging knowledge automatically from processed corpora by machine learning (ML) and rough set (RS) methods. For real corpora, Du and Zheng (Du and Zheng, 2001) proposed a rule-based consistency check method and strategy to identify the inconsistency phenomena of POS tagging. However, the algorithms and techniques for automatic consistency check of POS tagging proposed in (Qu and Chen, 2003; Qian and Zheng, 2003; Qian and Zheng, 2004; Du and Zheng, 2001) still have some insufficiencies. For example, the assignment of POS tags of the inconsistent POS tagging that are not included in the instance set needs to be conducted manually.</p>
                <p>In this paper, we propose a novel classificationbased method to check the consistency of POS tagging. Compared to Zhang et al. (Zhang et al., 2004), the proposed method fully considers the mutual relation of the POS in POS tagging sequence, and adopts transition probability and emission probability to describe the mutual dependencies and k -NN algorithm to weigh the similarity. We evaluated our proposed algorithm on our 1.5M-word corpus. In open test, our method achieved a precision of 85.24% and a recall of 85.84%.</p>
                <p>The rest of the paper is organized as follows. Section 2 introduces the context vector model of POS tagging sequences. Section 3 describes the proposed classification-based consistency check algorithm. Section 4 discusses the experimental results. Finally, the concluding remarks are given in Section 5.</p>
            </div1>
            <div1>
                <head xml:id="sec2">Describing the Context of Multi-category Words</head>
                <p>The basic idea of our approach is to use the context information of multi-category words to judge whether they are tagged consistently or not. In other words, if a multi-category word appears in two locations and the surrounding words in those two locations are tagged similarly, the multi-category word should be assigned with the same POS tag in those two locations as well. Hence, our approach is based on the context of multi-category words and we model the context by looking at a window around a multi-category word and the tagging sequence of this window. In the rest of this section, we describeour vector representation of the context of multi-category words and how to determine various parameters in our vector representations.</p>
                <div2>
                    <head xml:id="sec2.1">Vector Representation of the Context of Multi-category Words</head>
                    <p>Our vector representation of context consists of three key components: the POS tags of each word in a context window ( POS attribute ), the importance of each word to the center multi-category word based on distance ( position attribute ), and the dependency of POS tags of the center multicategory word and its surrounding words ( Dependency Attribute ).</p>
                    <p>Given a multi-category word and its context window of size l , we represent the words in sequential order as ( w 1 ;w 2 ;:::;w ) and the POS l tags of each word as ( t 1 ;t 2 ;:::;t ) . We also re- l fer to the latter vector as POS tagging sequence .</p>
                    <p>In practise, we choose a proper value of l so that the context window contains sufficient number of words and the complexity of our algorithm remains relatively low. We will discuss this matter in detail later. In this study, we set the value of l to be 7.</p>
                </div2>
                <div2>
                    <head xml:id="sec2.1.1">POS Attribute</head>
                    <p>The POS tagging sequence contains information of the POS of each preceding (following) word in a POS tagging sequence as well as the position of each POS tag. The POS of surrounding words may have different effect on determining the POS of the multi-categoryword, which we refer to as POS attribute and represent it using a matrix as follows.</p>
                    <p>Suppose we have a tag set of size m ( 1 ; 2 ;:::; m ) , given a multi-category word with a context window of size l ( w 1 ;w 2 ;:::;w ) and its l POS tagging sequence, the POS attribute matrix Y isan l by m matrix, where the rows indicate the POS tags of the preceding words, multi-category word, and the following words in the context window, while the columns present tags in the tag set. Y i;j =1 iff the POS tag of w i is j .</p>
                    <p>For example, consider the the POS attribute matrix of Ā催ā “ ” in the following sentence: Ā催ā 㓔 /v ⒵ /a ᔽ♃ /n ⱘ /u 催 /a ศ /n Ⳉ /d ᦦ /v ໰ぎ /n ,/w</p>
                    <p>As we let =7 , we look at the word Ā催ā “ ” and its 3 preceding and following words. Hence, the POS tagging sequence is(a,n,u,a,n,d,v). In our study, we used a standard tag set that consists of 25 tags. Suppose the tag set is ( n, v, a, d, u, p, r,m,q,c,w,I,f,s,t,b,z,e,o,l,j,h,k,g,y),then the POS attribute matrix of Ā催ā “ is: 0 B B 10000 B B B 00001 = B B 00100 B B 10000 B 00010 01000</p>
                </div2>
                <div2>
                    <head xml:id="sec2.1.2">Position Attribute</head>
                    <p>Due to the different distances from the multicategory word, the POS of the word before (after) the multi-categoryword may in a POS tagging sequence have a different influence on the POS tagging of the multi-category word, which we refer to as position attribute .</p>
                    <p>Given a multi-category word with a context window of size , suppose the number of preceding (following) words is (i.e., = 2 + 1 ), the position attribute vector X of the multi-category word is given by X = ( 1 n n +1 n +2 ) , where n +1 is the l value of the position attribute of the multicategory word and n +1 i ( n +1+ i ) is the value of the position attribute of the th preceding (following) word. We further require P that 8 n i = i and n +1 + n +1 n +1+ =1 ( n +1 + i n +1+ i )=1 .</p>
                    <p>We choose a proper position attribute vector so that the multi-category word itself has the highest weight, and the closer the surrounding word , the higher its weight is. If we consider a context window of size 7, based on our preliminaryexperiments, we chose the following position attribute values: 1 = 7 = 1 22 ; 2 = 6 = 1 11 ;</p>
                    <p>3 = 5 =2 11 ; and 4 =4 11 . Hence, the final position attribute vector used in our study can be written as follows: i X =( )</p>
                    <p>Note that if the POS tag in the POS tagging sequence is incorrect, the position attribute value of [BAR] ” in this example the corresponding position should be turned into a negative value, so that when the incorrect POS tag appears in a POS tagging sequence, this attribute can correctly show that the incorrect POS tag has negative effect on generating the final context vector.</p>
                </div2>
                <div2>
                    <head xml:id="sec2.1.3">Dependency Attribute</head>
                    <p>The last attribute we focus on is dependency attribute, which corresponds to the fact that there are mutual dependencies on the appearance of every POS in POS tagging sequences. In particular, we use transition probability and emission probability in Hidden Markov Model (HMM) (Leek, 1997) to capture this dependency.</p>
                    <p>Given a tag set of size ( 1 2 m ) , the transition probability table is an by matrix and given by: = T )= i j i;j ( i j ( ) [BAR]</p>
                    <p>( i ) where ( i j ) is the frequency of the POS tag j appears after the POS tag i in the entire corpus;</p>
                    <p>( i ) is the frequencyof the POS tag i appears in the entire corpus; and T is the transition probability.</p>
                    <p>Given a tag set of size ( 1 2 m ) , the emission probability table isan by matrix and given by: E ( i j ) = ( )= [BAR] i;j i j</p>
                    <p>( j ) where ( i j ) is the frequency of the POS tag i appears before the POS tag j in the entire corpus;</p>
                    <p>( j ) is the frequency of the POS tag j appears in the entire corpus; and E is the emission probability.</p>
                    <p>Note that both and are constructed from the entire corpus and we can look up these two tables easily when we consider the POS tags appear in POS tagging sequences.</p>
                    <p>Now, when we look at a contextwindow of size 7 ( 1 2 7 ) and its POS tagging sequence ( 1 2 7 ) , there are three types of probabilities we need to take into account.</p>
                    <p>The first one is the probability of the appearanceofthePOStag 4 of the multi-category word, which we can write as follows: C X ( 4 )= ( 4 is tagged as 4 ) ( 4 ) (1) where f ( w 4 ) is the frequency of the appearance of the multi-category word w 4 in the entire corpus and f ( w 4 istaggedast 4 ) is the frequency of the appearance where the word w 4 is tagged as t 4 in the entire corpus.</p>
                    <p>The second one is transition probability, which is the probabilityof the appearance of the POS tag t i +1 in the i +1 position after the POS tag t i in the i position and shown in Eqn. 2: P T +1) = P T ( t i ;t i +1 )= f ( t i ;t i +1 ) =f ( t i ) : ( i;i</p>
                    <p>(2)</p>
                    <p>The last last is emission probability, which is the probability of the appearance of the POS tag t i 1 in the i 1 position before the POS tag t i in the i position and shown in Eqn. 3: P E = P E ( t i 1 ;t i )= f ( t i 1 ;t i ) =f ( t i ) : ( i 1 ;i )</p>
                    <p>(3)</p>
                    <p>According to the above three probability formulas we can build a seven- dimensional vector, where each dimension corresponds to one POS tag, respectively.</p>
                    <p>Given a multi-category word with a context window of size 7 and its POS tagging sequence, the dependency attribute vector V P of the multicategory word is defined as follows: V =( P ;P ;P ;P ;P ;P ;P ) ; where P 1 P 2 P 3 P 4 P 5 P 6 P 7 = = = = = = = = =</p>
                </div2>
                <div2>
                    <head xml:id="sec2.1.4">Context Vector of Multi-category Words</head>
                    <p>Now we are ready to define the context vector of multi-category words.</p>
                    <p>Given a multi-category word with a context window of size l and its POS attribute matrix Y , P P T (1 ; 2) P T (1 ; 2) P T (2 ; 3) P T (3 ; 4) P CX ( t 4 ); P T P = P E (4 ; 5) 4 (4 ; 5) P T P = P E (5 ; 6) 5 (5 ; 6) P T P (6 ; 7) 6 P E P E P (6 ; 7) (5 ; 6) (4 ; 5) P 2 P T P T 2 ; 3 (3 ; 4) P = P T 3 (2 ; 3) P = P T 4 (3 ; 4) P CX ( t 4 ); P T P CX ( t 4 ); (3 ; 4) P CX ( t 4 ); P E P CX ( t 4 ); (4 ; 5) P E P CX ( t 4 ); (4 ; 5) P ( t 4 ) : CX position attribute vector V X , and dependency attribute vector V P , the context vector V S of the multi-category word is defined as follows: V S =( V X + V P ) Y; (4) where and are the weights of the position attribute and the dependency attribute, respectively.</p>
                    <p>Note that we require + =1 , and their optimal values are determined by experiments in our study.</p>
                </div2>
                <div2>
                    <head xml:id="sec2.2">Experiment on the Size of the Context Window</head>
                    <p>Context vectors can be extended by using 4 to 7 preceding (following) words to substitute 3 preceding (following) words in context windows and POS tagging sequences. We conducted experiments with a context window of size 3 to 7 on our sampled 1M-word training corpus and performed closed test. The experimental results are evaluated in terms of both the precision of consistency check and algorithm complexity simultaneously. We plot the effect on precision in Figure 1. Number of the preceding (following) words Figure 1: Effect on precision of the number of preceding (following) words.</p>
                    <p>As shown in Figure 1, the precision of consistency check increases as we include more preceding (following) words. In particular, the precision is improved by 1% when we use 7 preceding (following) words. However, the increase of complexity is much higher than that of precision, because the dimensionality of the position attribute vector, POS attribute vector, and dependency attribute vector doubles. Hence, we chose 3 as the number of preceding (following) words to form context windows and calculate context vectors.</p>
                </div2>
                <div2>
                    <head xml:id="sec2.3">Effect on consistency check precision of and</head>
                    <p>When using our sampled 1M-word training corpus to conduct closed test, we found that consistency check precision changes significantly with the different values of and . Figure 2 shows the trend when varies from 0.1 to 0.9. We used</p>
                    <p>=04 and =06 in our experiments. α Figure 2: Effect on consistency check precision of and .</p>
                </div2>
            </div1>
            <note n="00100" place="below"></note>
            <note n="1" place="below">1 2 4 2 1 2</note>
            <note n="22" place="below">11 11 11 11 11 22</note>
            <note n="1" place="below"> C C C C C C C C C C A</note>
            <note n="1" place="below">2 3 4</note>
            <note n="5" place="below">6 7</note>
            <note n="0.882" place="below"></note>
            <note n="0.88" place="below"></note>
            <note n="0.878" place="below"></note>
            <note n="0.876" place="below"></note>
            <note n="0.874" place="below"></note>
            <note n="0.872" place="below"></note>
            <note n="0.87" place="below"></note>
            <note n="3" place="below">4 5 6 7</note>
            <note n="0.9" place="below"> 0.85 0.8 0.75 0.7 0.65 0.6 0.55 0.5</note>
            <note n="0.1" place="below">0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9</note>
            <div1>
                <head xml:id="sec3">Consistency Check of POS Tagging</head>
                <p>Our consistency check algorithm is based on classification of context vectors of multi-category words. In particular, we first classify context vectors of each multi-category word in the training corpus, and then we conduct the consistency check of POS tagging based on classification results.</p>
                <div2>
                    <head xml:id="sec3.1">Similarity between Context Cectors of Multi-category Words</head>
                    <p>After constructing context vectors for all multicategory words from their context windows and POS tagging sequences, the similarity of two context vectors is defined as the Euclidean Distance between the two vectors. &quot; X =1 where and are two arbitrary context vectors of</p>
                    <p>dimensions. # (1 2) )= = 2 ( ( ) (5)</p>
                </div2>
                <div2>
                    <head xml:id="sec3.2">-NN Classification Algorithm</head>
                    <p>Classification is a process to assign objects that need to be classified to a certain class. In this paper, we used a popular classification method: the</p>
                    <p>-NN algorithm.</p>
                    <p>Suppose we have classes and a class ( = ) has samples ( () ( 12 ) ( = 12 ) ). The idea of the -NN algorithm is that for each unlabeled object , compute the distances between and all samples whose class is known, and select samples ( nearest neighbors) with the smallest distance. This object will be assigned to the class that contains the most samples in the nearest neighbors.</p>
                    <p>We now formally define the discriminant function and discriminant rule. Suppose 1 2 are the numbers of samples in the nearest neighbors of the object that belong to the classes</p>
                    <p>1 2 , respectively. Define the discriminant function of the class as ( )= = 12 Then, the discriminant rule of determining the class of the object can be defined as follows: = max ( ) =12</p>
                </div2>
                <div2>
                    <head xml:id="sec3.3">Consistency Check Algorithm</head>
                    <p>In this section, we describe the steps of our classification-based consistency check algorithm in detail. Step1: Randomly sampling sentences containing multicategory words and checking their POS tagging manually. For each multi-category word, classifying the context vectors of the sampled POS tagging sequences, so that the context vectors that have the same POS for the multi-category word belong to the same class. Step2: Given a context vector of a multi-category word , calculating the distances between and all the context vectors that contains the multi-category word in the training corpus, and selecting context vectors with smallest distances. Step3: According to the -NN algorithm, checking the classes of the nearest context vectors and classifying the vector . Step4: Comparing the POS of the multi-category word in theclass that the -NN algorithm assigns toandthePOS tag of . If they are the same, the POS tagging of the multicategory word is considered to be consistent, otherwise it is inconsistent.</p>
                    <p>The major disadvantage of this algorithm is the difficulty in selecting the value of . If is too small, the classification result is unstable. On the other hand, if is too big, the classification deviation increases.</p>
                </div2>
                <div2>
                    <head xml:id="sec3.4">Selecting in Classification Algorithm</head>
                    <p>Figure 3 shows the consistency check precision values obtained with various values in the NN algorithm. The precision values are closed Table 1: Experimental Results</p>
                    <p>Number of Number of Number of Test Test multi-category the true the identified Recall Prec ision corpora type words inconsistencies inconsistencies (%) (% ) [BAR] test results on our 1M-word training corpus, and were obtained by using =04 and =06 in the context vector model. Number of nearest neighbors (k) Figure 3: Effect on precision of in the -NN algorithm.</p>
                    <p>As shown in Figure 3, when continues to increase from 6, the precision remains the same. When when reaches to 9, the precision starts declining. Our experiment with other and values also show similar trends. Hence, we chose</p>
                    <p>=6 in this paper.</p>
                </div2>
            </div1>
            <note n="1M-word" place="below">closed 127,210 1,147 1,219 (156) 92.67 87.20</note>
            <note n="500K-word" place="below">open 64,467 579 583 (86) 85.84 85.24</note>
            <note n="0.85" place="below"> 0.8 0.75 0.7 0.65 0.6 0.55</note>
            <div1>
                <head xml:id="sec4">Experimental Results</head>
                <p>We evaluated our consistency check algorithm on our 1.5M-word corpus (including 1M-word training corpus) and conducted open and closed tests. The results are showed in Table 1.</p>
                <p>The experimental results show two interesting trends. First, the precision and recall of our consistency check algorithm are 87.20% and 92.67% in closed test, respectively, and 85.24% and 85.84% in open test, respectively. Compared to Zhang et al. (Zhang et al., 2004), the precision of consistency check is improved by 2 3%, and the recall is improved by 10%. The experimental results indicate that the context vector model has great improvements over the one used in Zhang et al. (Zhang et al., 2004). Second, thanks to the great improvement of the recall, to some extent, our consistency check algorithm prevents the happening of events with small probabilities in POS tagging.</p>
            </div1>
            <div1>
                <head xml:id="sec5">Conclusion and Future Research</head>
                <p>In this paper, we propose a new classificationbased method to check consistency of POS tagging, and evaluated our method on our 1.5Mword corpus (including 1M-word training corpus) with both open and closed tests.</p>
                <p>In the future, we plan to investigate more types of word attributes and incorporate linguistic and mathematical knowledge to develop better consistency check models, which ultimately provide a better means of building high-quality Chinese corpora. Acknowledgements This research was partially supported by the National Natural Science Foundation of China No. 60473139 and the Natural Science Foundation of Shanxi Province No. 20051034. References Y. Du and J. Zheng. 2001. The proofreading method study</p>
                <p>on consistence of segment and part-of-speech. Computer</p>
                <p>Development and Application , 14(10):16–18. T. R. Leek. 1997. Information extraction using hidden</p>
                <p>Markov models. Master’s thesis, UC San Diego. Y. Qian and J. Zheng. 2003. Research on the method of</p>
                <p>automatic correction of chinese pos tagging. Journal of</p>
                <p>Chinese Information Processing , 18(2):30–35. Y. Qian and J. Zheng. 2004. An approach to improving the</p>
                <p>quality of part-of-speech tagging of chinese text. In Pro-</p>
                <p>ceedings of the 2004 IEEE International Conference on</p>
                <p>Information Technology: Coding and Computing (ITCC</p>
                <p>2004). W. Qu and X. Chen. 2003. Analysing on the words classi-</p>
                <p>fied hard in pos tagging. In Proceedings of the 9th Na-</p>
                <p>tional Computational Linguistics (JSCL’03) . H. Xing. 1999. Analysing on the words classified hard in</p>
                <p>pos tagging. In Proceedings of the 5th National Compu-</p>
                <p>tational Linguistics (JSCL’99) . H. Zhang, J. Zheng, and J. Liu. 2004. The inspecting</p>
                <p>method study on consistency of pos tagging of corpus.</p>
                <p>Journal of Chinese Information Processing , 18(5):11–16.</p>
            </div1>
        </body>
        <back/>
    </text>
</TEI>
