<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="161"/><title>A Maximum Entropy Approach to Chinese Word Segmentation</title><author surname="Low" givenname="Jin Kiat"><org  name="National University of Singapore" country="Singapore"/></author><author surname="Ng" givenname="Hwee Tou"><org  name="Konan University" country="Japan" city="Kobe"/></author><author surname="Guo" givenname="Wenyuan"><org  name="Singapore-MIT Alliance" country="Singapore"/></author></firstpageheader><frontmatter><p><b>A Maximum Entropy Approach to Chinese Word Segmentation</b></p><p><b>Jin Kiat Low </b><footnote anchor="1"/> and <b>Hwee Tou Ng </b><footnote anchor="12"/> and <b>Wenyuan Guo </b><footnote anchor="2"/></p><p>1. Department of Computer Science, National University of Singapore, 3 Science Drive 2, Singapore 117543 2. Singapore-MIT Alliance, E4-04-10, 4 Engineering Drive 3, Singapore 117576 (lowjinki,  nght, guowy}@comp.nus.edu.sg</p></frontmatter><abstract>We participated in the Second Inter­national Chinese Word Segmentation Bakeoff. Specifically, we evaluated our Chinese word segmenter in the open track, on all four corpora, namely Academia Sinica (AS), City University of Hong Kong (CITYU), Microsoft Re­search (MSR), and Peking University (PKU). Based on a maximum entropy approach, our word segmenterachieved the highest F measure for AS, CITYU, and PKU, and the second highest for MSR. We found that the use of an ex­ternal dictionary and additional training corpora of different segmentation stan­dards helped to further improve seg­mentation accuracy. </abstract></header><body><section number="1" title="Chinese Word Segmenter"><p>The Chinese word segmenter we built is similar to the maximum entropy word segmenter we em­ployed in our previous work (Ng and Low, 2004). Our word segmenter uses a maximum entropy framework (Ratnaparkhi, 1998; Xue and Shen, 2003) and is trained on manually segmented sen­tences. It classifies each Chinese character given the features derived from its surrounding context. Each Chinese character can be assigned one of four possible boundary tags: s for a character that occurs as a single-character word, b for a charac­ter that begins a multi-character (i.e., two or more characters) word, e for a character that ends a multi-character word, and m for a character that is neither the first nor last in a multi-character word. Our implementation used the opennlp maximum entropy package v2.1.0 from sourceforge.<footnote anchor="1"/></p><subsection number="1.1" title="Basic Features"><p>The basic features of our word segmenter are similar to our previous work (Ng and Low, 2004):</p><doubt alpha="19.0" length="21" tooSmall="False" monospace="0.0">(a)Cn(n= -2,-1,0,1,2)</doubt><doubt alpha="20.8" length="24" tooSmall="False" monospace="0.0">(b)C„C„+i(n= -2, -1,0,1)</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">(c)C_iCi</doubt><doubt alpha="55.6" length="9" tooSmall="False" monospace="0.0">(d)Pu(Co)</doubt><doubt alpha="46.7" length="30" tooSmall="False" monospace="0.0">(e)T(C_2)T(C_i)T(Co)T(Ci)T(C2)</doubt><p>In the above feature templates, C refers to a Chinese character. Templates (a) - (c) refer to a context of five characters (the current character and two characters to its left and right). Co denotes the current character, <i>Cn(C_n </i>) denotes the character n positions to the right (left) of the current character. For example, given the charac­ter sequence "0Ttt 4b when considering the character Co "tt", C_2 denotes "§T", CiC2 denotes "4b etc. The punctuation feature, <i>Pu(C0), </i>checks whether C0 is a punctuation symbol (such as "?", ","). For the type fea­ture (e), four type classes are defined: numbers represent class 1, dates ("0", "H", the Chinese characters for "day", "month", "year", respectively) represent class 2, English letters represent class 3, and other characters represent class 4. For example, when considering the character in the character sequence <i>"% </i><i>33</i><i> </i>^ftR", the feature T(C_2)... T(C2) = 11243 will be set to 1 ("A" is the Chinese character for "9" and "3" is the Chinese character for "0").<page local="2" global="162"/></p><footnote label="1"> http://maxent.sourceforge.net/</footnote><p>Besides these basic features, we also made use of character normalization. We note that char­acters like punctuation symbols and Arabic dig­its have different character codes in the ASCII, GB, and BIG5 encoding standard, although they mean the same thing. For example, comma "," is represented as the hexadecimal value 0x2 c in ASCII, but as the hexadecimal value 0xa3ac in GB. In our segmenter, these different character codes are normalized and replaced by the corre­sponding character code in ASCII. Also, all Ara­bic digits are replaced by the ASCII digit "0" to denote any digit. Incorporating character normal­ization enables our segmenter to be more robust against the use of different encodings to represent the same character.</p><p>For all the experiments that we conducted, training was done with a feature cutoff of 2 and 100 iterations, except for the AS corpus which had a feature cutoff of 3.</p><p>A major difficulty faced by a Chinese word segmenter is the presence of out-of-vocabulary (OOV) words. Segmenting a text with many OOV words tends to result in lower accuracy. We ad­dress the problem of OOV words in two ways: using an external dictionary containing a list of predefined words, and using additional training corpora which are not segmented according to the same segmentation standard.</p></subsection><subsection number="1.2" title="External Dictionary"><p>If a sequence of characters in a sentence matches a word in an existing dictionary, it may be a clue that the sequence of characters should be segmented as one word. We used an online dictionary from Peking University downloadable from the Internet<footnote anchor="2"/>, consisting of about 108,000 words of length one to four characters. If there is some sequence of neighboring characters around Co in the sentence that matches a word in this dictionary, then we greedily choose the longest such matching word W in the dictionary. Let <i>t0</i>be the boundary tag of C0 in W, L the number of characters in W, and Ci(C_i) be the character immediately following (preceding) C0 in the sentence. We then add the following features derived from the dictionary:</p><footnote label="2">http://ccl.pku.edu.cn/doubtfire/Course/ Chinese%20Information%20Processing/Source_Code/ Chapter_8/Lexicon_full J2000.zip</footnote><doubt alpha="50.0" length="6" tooSmall="False" monospace="0.0">(f)Lt0</doubt><doubt alpha="27.8" length="18" tooSmall="False" monospace="0.0">(g)Cnt0(n= -1,0,1)</doubt><p>For example, consider the sentence "0T <i>^ß tt </i>4kïH... ". When processing the current character C0 we will attempt to match the following candidate sequences        "§T tt", "§T</p><p>^tt", "^ttifc", "§T^tt4fc", and "^ttifcîjC against existing words in our dictionary. Suppose both tt" and "§T ^ tt" are found in the dictionary. Then the longest matching word W chosen is "§T^tt", t0 is m, L is 3, C_i is "§T",</p><p>and Ci is "t".</p></subsection><subsection number="1.3" title="Additional Training Corpora"><p>The presence of different standards in Chinese word segmentation limits the amount of training corpora available for the community, due to dif­ferent organizations preparing training corpora in their own standards. Indeed, if one uniform seg­mentation standard were adopted, more training data would have been available, and the OOV problem could be significantly reduced.</p><p>We observed that although different segmenta­tion standards exist, the differences are limited, and many words are still segmented in the same way across two different segmentation standards. As such, in our work, we attempt to incorporate corpora from other segmentation standards as ad­ditional training data, to help reduce the OOV problem.</p><p>Specifically, the steps taken are:</p><p>1. Perform training with maximum entropy modeling using the original training corpus <i>D0 </i>annotated in a given segmentation stan­dard.</p><p>2. Use the trained word segmenter to segment another corpus D annotated in a different segmentation standard.</p><p>3. Suppose a Chinese character C in D is as­signed a boundary tag t by the word seg­menter with probability p. If t is identical to the boundary tag of C in the gold-standard annotated corpus D, and p is less than some threshold 6, then C (with its surrounding context in D) is used as additional training data.<page local="3" global="163"/></p><p>4. Add all such characters C as additional train­ing data to the original training corpus D0, and train a new word segmenter using the en­larged training data.</p><p>5. Evaluate the accuracy of the new word seg­menter on the same test data annotated in the original segmentation standard ofD0.</p><p>For the current bakeoff, when training a word segmenter on a particular training corpus, the ad­ditional training corpora are all the three corpora in the other segmentation standards. For example, when training a word segmenter for the AS cor­pus, the additional training corpora are CITYU, MSR, and PKU. The necessary character encod­ing conversion between GB and BIG5 is per­formed, and the probability threshold 6 is set to 0.8. We found from our experiments that setting 6 to a higher value did not further improve seg­mentation accuracy, but would instead increase the training set size and incur longer training time.</p></subsection></section><section number="2" title="Testing"><p>During testing, the probability of a boundary tag sequence assignment ti . . . t<i>n </i>given a character sequence Ci . . . C<i>n </i>is determined by using the maximum entropy classifier to compute the prob­ability that a boundary tag tj is assigned to each individual character Cj. If we were to just as­sign each character the boundary tag with the highest probability, it is possible that the clas­sifier produces a sequence of invalid tags (e.g., m followed by s). To eliminate such possibil­ities, we implemented a dynamic programming algorithm which considers only valid boundary tag sequences given an input character sequence. At each character position i, the algorithm con­siders each last word candidate ending at posi­tion i and consisting of K characters in length (K <i>= </i>1,..., 20 in our experiments). To deter­mine the boundary tag assignment to the last word W with K characters, the first character of W is assigned boundary tag b, the last character of W is assigned tag e, and the intervening characters are assigned tag m. (If W is a single-character word, then the single character is assigned tag s). In this way, the dynamic programming algorithm only considers valid tag sequences.</p><p>After word segmentation is done by the maxi­mum entropy classifier, a post-processing step is applied to correct inconsistently segmented words made up of 3 or more characters. A word W is defined to be inconsistently segmented if the con­catenation of 2 to 6 consecutive words elsewhere in the segmented output document matches W. In the post-processing step, the segmentation of the characters of these consecutive words is changed so that they are segmented as a single word. To illustrate, if the concatenation of 2 consecutive words "H$F' and "MS" in the segmented out­put document matches another word "HfêMS", then the 2 consecutive words "H$F' and "MS" will be re-segmented as a single word "ll M</p><p>S".</p></section><section number="3" title="Evaluation Results"><p>We evaluated our Chinese word segmenter in the open track, on all 4 corpora, namely Academia Sinica (AS), City University of Hong</p><p>Kong (CITYU), Microsoft Research (MSR), and</p><p>Peking University (PKU). Table 1 shows our of­ficial SIGHAN bakeoff results. The columns R, P, and F show the recall, precision, and F mea­sure, respectively. The columns Roov and Rivshow the recall on out-of-vocabulary words and in-vocabulary words, respectively. Our Chinese word segmenter which participated in the bakeoff was trained with the basic features (Section 1.1), and made use of the external dictionary (Sec­tion 1.2) and additional training corpora (Sec­tion 1.3). Our word segmenter achieved the high­est F measure for AS, CITYU, and PKU, and the second highest for MSR. After the release of the official bakeoff results, we ran a series of experiments to determine the contribution of each component of our word seg­menter, using the official scorer and test sets with gold-standard segmentations.<page local="4" global="164"/> Version V1 used only the basic features (Section 1.1); Version V2 used the basic features and additional features de­rived from our external dictionary (Section 1.2); Version V3 used the basic features but with ad­ditional training corpora (Section 1.3); and Ver­sion V4 is our official submitted version combin­ing basic features, external dictionary, and addi­tional training corpora. Table 2 shows the word segmentation accuracy (F measure) of the differ­ent versions of our word segmenter, when tested on the official test sets of the four corpora. The results indicate that the use of external dictionary increases segmentation accuracy. Similarly, the use of additional training corpora of different seg­mentation standards also increases segmentation accuracy.</p><table caption="Table 1: Our official SIGHAN bakeoff results" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Corpus</p></td><td class="cell"><p>R</p></td><td class="cell"><p>P</p></td><td class="cell"><p>F</p></td><td class="cell"><p><i>Roov</i></p></td><td class="cell"><p><i>Riv</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>AS</p></td><td class="cell"><p>0.962</p></td><td class="cell"><p>0.950</p></td><td class="cell"><p>0.956</p></td><td class="cell"><p>0.684</p></td><td class="cell"><p>0.975</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>CITYU</p></td><td class="cell"><p>0.967</p></td><td class="cell"><p>0.956</p></td><td class="cell"><p>0.962</p></td><td class="cell"><p>0.806</p></td><td class="cell"><p>0.980</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MSR</p></td><td class="cell"><p>0.969</p></td><td class="cell"><p>0.968</p></td><td class="cell"><p>0.968</p></td><td class="cell"><p>0.736</p></td><td class="cell"><p>0.975</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>PKU</p></td><td class="cell"><p>0.968</p></td><td class="cell"><p>0.969</p></td><td class="cell"><p>0.969</p></td><td class="cell"><p>0.838</p></td><td class="cell"><p>0.976</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 2: Word segmentation accuracy (F mea­sure) ofdifferent versions ofour word segmenter"></table><table caption="Table 2: Word segmentation accuracy (F measure) ofdifferent versions ofour word segmenter" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Corpus</p></td><td class="cell"><p>V1</p></td><td class="cell"><p>V2</p></td><td class="cell"><p>V3</p></td><td class="cell"><p>V4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>AS</p></td><td class="cell"><p>0.953</p></td><td class="cell"><p>0.955</p></td><td class="cell"><p>0.956</p></td><td class="cell"><p>0.956</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>CITYU</p></td><td class="cell"><p>0.950</p></td><td class="cell"><p>0.960</p></td><td class="cell"><p>0.961</p></td><td class="cell"><p>0.962</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MSR</p></td><td class="cell"><p>0.960</p></td><td class="cell"><p>0.968</p></td><td class="cell"><p>0.963</p></td><td class="cell"><p>0.968</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>PKU</p></td><td class="cell"><p>0.948</p></td><td class="cell"><p>0.965</p></td><td class="cell"><p>0.956</p></td><td class="cell"><p>0.969</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table></section><references><p>Hwee Tou Ng and Jin Kiat Low. 2004. Chinese part-of-speech tagging: One-at-a-time or all-at-once? word-based or character-based? In <i>Proceedings of the 2004 Conference on Empirical Methods in Nat­ural Language Processing (EMNLP 2004), </i>pages 277-284.</p><p>Adwait Ratnaparkhi. 1998. <i>Maximum Entropy Mod­els for Natural Language Ambiguity Resolution. </i>Ph.D. thesis, University of Pennsylvania.</p><p>Nianwen Xue and Libin Shen. 2003. Chinese word segmentation as LMR tagging. In <i>Proceedings of the Second SIGHAN Workshop on Chinese Lan­guage Processing, </i>pages 176-179.</p><p><b>4 Conclusion</b></p><p>Using a maximum entropy approach, our Chi­nese word segmenter achieves state-of-the-art ac­curacy, when evaluated on all four corpora in the open track of the Second International Chinese Word Segmentation Bakeoff. The use of an exter­nal dictionary and additional training corpora of different segmentation standards helps to further improve segmentation accuracy.</p><p><b>Acknowledgements</b></p><p>This research is partially supported by a research grant R252-000-125-112 from National Univer­sity of Singapore Academic Research Fund, as well as the Singapore-MIT Alliance.</p></references></body></article>