<?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="154"/><title>Perceptron Learning for Chinese Word Segmentation</title><author surname="Li" givenname="Yaoyong"><org  name="University of Sheffield" country="United Kingdom" city="Sheffield"/></author><author surname="Miao" givenname="Chuanjiang"><org  name="Beijing Normal University" country="China" city="Beijing"/></author><author surname="Bontcheva" givenname="Kalina"><org  name="University of Sheffield" country="United Kingdom" city="Sheffield"/></author><author surname="Cunningham" givenname="Hamish"><org  name="University of Sheffield" country="United Kingdom" city="Sheffield"/></author></firstpageheader><frontmatter><p><b>Perceptron Learning for Chinese Word Segmentation</b></p><p><b>Yaoyong Li^, Chuanjiang Miao^, Kalina Bontcheva^, Hamish Cunningham^</b></p><p>^Department of Computer Science, The University of Sheffield, Sheffield, S1 4DP, UK {yaoyong,kalina,hamish}@dcs.shef.ac.uk ^Institute of Chinese Information Processing, Beijing Normal University, Beijing, 100875, China</p><p>miaochj@bnu.edu.cn</p></frontmatter><abstract>We explored a simple, fast and effective learning algorithm, the uneven margins Perceptron, for Chinese word segmen­tation. We adopted the character-based classification framework and trans­formed the task into several binary clas­sification problems. We participated the close and open tests for all the four corpora. For the open test we only used the utf-8 code knowledge for discrimi­nation among Latin characters, Arabic numbers and all other characters. Our system performed well on the as, cityu and msr corpora but was clearly worse than the best result on the pku corpus. </abstract></header><body><section number="1" title="Introduction"><p>We participated in the closed and open tests for all the four corpora, referred to as, cityu, msr and pku, respectively. We adopted the character-based methodology for Chinese word segmentation, that processed text character by character. We ex­plored a simple and effective learning algorithm, the Perceptron with Uneven Margins (PAUM) for Chinese word segmentation task.</p><p>For the open task, we only used the minimal ex­ternal information - the utf-8 code knowledge to distinguish Latin characters and Arabic numbers from other characters, justified by the fact that the English text requires no segmentation since they has been segmented already, and another fact that any Arabic number in one particular context should have the same segmentation.</p></section><section number="2" title="Character Based Chinese Word Segmentation"><p>We adopted the character based methodology for Chinese word segmentation, in which every char­acter in a sentence was checked one by one to see if it was a word on its own or it was begin­ning, middle, or end character of a multi-character word. In contrast, another commonly used strat­egy, the word based methodology segments a Chi­nese sentence into the words in a pre-defined word list possibly with probability information about each word, according to some maximum probability criteria ( see e.g. Chen (2003)). The performance of word based segmentation is de­pendent upon the quality of word list used, while the character based method does not need any word list - it segments a sentence only based on the characters in the sentence.</p><p>Using character based methodology, we trans­form the word segmentation problem into four binary classification problems, corresponding to single-character word, the beginning, middle and end character of multi-character word, respec­tively. For each of the four classes a classifier was learnt from training set using the one vs. all others paradigm, in which every character in the train­ing data belonging to the class considered was re­garded as positive example and all other charac­ters were negative examples.</p><p>After learning, we applied the four classifiers to each character in test text and assigned the char­acter the class which classifier had the maximal output among the four. This kind of strategy has been widely used in the applications of machine learning to named entity recognition and has also been used in Chinese word segmentation (Xue and Shen, 2003).<page local="2" global="155"/> Finally a word delimiter (often a blank space, depending on particular corpus) was added to the right of one character if it was not the last character of a sentence and it was predicted as end character of word or as a single character word.</p></section><section number="3" title="Learning Algorithm"><p>Perceptron is a simple and effective learning al­gorithm. For a binary classification problem, it checks the training examples one by one by pre­dicting their labels. If the prediction is correct, the example is passed; otherwise, the example is used to correct the model. The algorithm stops when the model classifies all training examples correctly. The margin Perceptron not only classi­fies every training example correctly but also out­puts for every training example a value (before thresholding) larger than a predefined parameter (margin). The margin Perceptron has better gen­eralisation capability than the standard Percep-tron. Li et al. (2002) proposed the Perceptron al­gorithm with uneven margins (PAUM) by intro­ducing two margin parameters t+ and t_ into the update rules for the positive and negative exam­ples, respectively. Two margin parameters allow the PAUM to handle imbalanced datasets better than both the standard Perceptron and the margin Perceptron. PAUM has been successfully used for document classification and information extrac­tion (Li et al., 2005).</p><p>We used the PAUM algorithm to train a clas­sifier for each of four classes for Chinese word segmentation. For one test example, the output of the Perceptron classifier before thresholding was used for comparison among the four classifiers. The important parameters of the learning algo­rithm are the uneven margins parameters t+ and t_. In all our experiments t+ = 20 and t_ = 1 were used.</p><p>Table 1 presents the results for each of the four classification problems, obtained from 4-fold cross-validation on training set. Not surprisingly, the classification for middle character of multi­character word was much harder than other three classification problems, since middle character of Chinese word is less characteristic than beginning or end character or single-character word. On the other hand, improvement on the classification for middle character, while keeping the performances of other classification, would improve the overall performance of segmentation.</p><p>Table 1: Results for each of the four classifiers: F1 (%) averaged over 4-fold cross-validation on training sets of the four corpora. C1, C2 and C3 refer to the classifier for beginning, middle and end character of multi-character word, re­spectively, and C4 refers to the classifier for single character word.</p><p>Support vector machines (SVM) is a popular learning algorithm, which has been successfully applied to many classification problems in natural language processing. Similar to the PAUM, SVM is a maximal margin algorithm. Table 2 presents a comparison of performances and computation times between the PAUM and the SVM with lin­ear kernel<footnote anchor="1"/> on three subsets of cityu corpora with different sizes. The performance of SVM was better than the PAUM. However, the larger the training data was, the closer the performance of</p><p>PAUM to that of SVM. On the other hand, SVM took much longer computation time than PAUM. As a matter of fact, we have run the SVM with linear kernel on the whole cityu training corpus using 4-fold cross-validation for one month and it has not finished yet. In contrast, PAUM just took about one hour to run the same experiment.</p></section><section number="4" title="Features for Each Character"><p>In our system every character was regarded as one instance for classification. The features for one character were the character form itself and the character forms of the two preceding and the two following characters of the current one. In other word, the features for one character <i>c0</i>were the character forms from a context win-<page local="3" global="156"/></p><footnote label="1">The SVM H9h * package version 5.0, available from http://svmlight.joachims.org/ , was used to learn the SVM classifiers in our experiments.</footnote><table 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></p></td><td class="cell"><p>CI</p></td><td class="cell"><p>C2</p></td><td class="cell"><p>C3</p></td><td class="cell"><p>C4</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>95.64</p></td><td class="cell"><p>90.07</p></td><td class="cell"><p>95.47</p></td><td class="cell"><p>95.27</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>96.64</p></td><td class="cell"><p>90.06</p></td><td class="cell"><p>96.43</p></td><td class="cell"><p>95.14</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>96.36</p></td><td class="cell"><p>89.79</p></td><td class="cell"><p>96.00</p></td><td class="cell"><p>94.99</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>96.09</p></td><td class="cell"><p>89.99</p></td><td class="cell"><p>96.18</p></td><td class="cell"><p>94.12</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><p>Table 2: Comparison of the Perceptron with SVM for Chinese word segmentation: averaged F1 (%) over the 4-fold cross-validation on three subsets of cityu corpus and the computation time (in sec­ond) for each experiment. The three subsets have 100, 1000 and 5000 sentences, respectively.</p><p>dow centering at co and containing five char­acters (c_2,c_i<i>,c0,ci,c2} </i>in a sentence. Our experiments on training data showed that co­occurrences of characters in the context win­dow were helpful. Taking account of all co­occurrences of characters in context window is equivalent to using a quadratic kernel in Percep-tron, while not using any co-occurrence amounts to a linear kernel. Actually we can only use part of co-occurrences as features, which can be re­garded as some kind of semi-quadratic kernel.</p><p>Table 3 compares the three types of ker­nel for Perceptron, where for the semi-quadratic kernel we used the co-occurrences of characters in context window as those used in (Xue and Shen, 2003), namely {c_2c_i,c_ico ,coci,cic2,c_i ci}. It was shown that the quadratic kernel gave much better results than linear kernel and the semi-quadratic kernel was slightly better than fully quadratic ker­nel. Semi-quadratic kernel also led to less feature and less computation time than fully quadratic kernel. Therefore, this kind of semi-quadratic kernel was used in our submissions.</p><p>Table 3: Comparisons between different kernels for Perceptron: F1 (%) averaged over 4-fold cross-validation on three training sets.</p><p>Actually it has been noted that quadratic ker­nel for Perceptron, as well as for SVM, performed better than linear kernel for informa­tion extraction and other NLP tasks (see e.g. Carreras et al. (2003)). However, quadratic ker­nel was usually implemented in dual form for Perceptron and it took very long time for train­ing. We implemented the quadratic kernel for Perceptron in primal form by encoding the linear and quadratic features into feature vector explic­itly. Actually our implementation performed even slightly better than the Perceptron with quadratic kernel as we used only part of quadratic features, and it was still as efficient as the Perceptron with linear kernel.</p></section><section number="5" title="Open Test"><p>While closed test required the participants only to use the information presented in training material, open test allowed to use any external information or resources besides the training data. In our sub­missions for the open test we just used the min­imal external information, namely the utf-8 code knowledge for identifying a piece of English text or an Arabic number. and What we did by us­ing this kind of knowledge was to pre-process the text by replacing each piece of English text with a symbol "E" and replacing every Arabic num­ber with another symbol "N". This kind of pre­processing resulted in a smaller training data and less computation time and yet slightly better per­formance on training data, as shown in Table 4 which compares the results of collapsing the En­glish text only and collapsing both the English text and Arabic number with those for closed test. Table 4 also presents the 95% confidence intervals for the F-measures.</p></section><section number="6" title="Results on Test Data"><p>Table 5 presents our official results on test corpora for both close and open tests. First, comparing with the results in Table 4, the results on test set are significantly different from the result using 4­fold cross validation on training set for all the four corpora. The test result was better than the results on training set for the msr corpus but was worse for other three corpora, especially for the pku cor­pora. We suspected that this may be caused by difference between training and test data, which needs further investigation.</p><table 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>100</p></td><td class="cell"><p>1000</p></td><td class="cell"><p>5000</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>PAUM</p></td><td class="cell"><p>73.55</p></td><td class="cell"><p>78.00</p></td><td class="cell"><p>88.08</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>4s</p></td><td class="cell"><p>14s</p></td><td class="cell"><p>92s</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>SVM</p></td><td class="cell"><p>75.50</p></td><td class="cell"><p>79.15</p></td><td class="cell"><p>88.78</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>227s</p></td><td class="cell"><p>3977s</p></td><td class="cell"><p>49353s</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></tr></table><table 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>linear</p></td><td class="cell"><p>quadratic</p></td><td class="cell"><p>semi-quadratic</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>81.30</p></td><td class="cell"><p>94.78</p></td><td class="cell"><p>95.13</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>79.80</p></td><td class="cell"><p>94.78</p></td><td class="cell"><p>94.93</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>82.33</p></td><td class="cell"><p>94.80</p></td><td class="cell"><p>95.05</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></tr></table><page local="4" global="157"/><p>Table 4: Comparisons between the results for close and open tests: averaged F1 (%) and the 95% confidence interval on the 4-fold cross-validation on the training sets of four corpora and the computation time (in hour) for each experi­ment. "English" means only collapsing English texts and "E &amp; N" means collapsing both English texts and Arabic numbers.</p><p>Secondly, the test results for close and open tests are close to each other on other three corpora except the pku corpora, for which the result for open test is clearly better than that for close test. This was mainly because of different encoding of Arabic number in training and test sets of the pku corpus. Since Arabic number was encoded in three bytes in training set but was encoded in one byte in test set for the pku corpora, for close test the trained model for Arabic number was not ap­plicable to the Arabic numbers in test set. How­ever, for open test, as we replaced Arabic num­ber with one symbol in both training and test sets, the different encoding of Arabic number in train­ing and test sets could not cause any problem at all, which led to better result. On the other hand, our pre-processing with respect to the English text and Arabic numbers seemed have slightly effect on the F-measure for other three corpora.</p><p>Finally, comparing with the results of closed test from other participants, our F1 figures were no more than 0.008 lower than the best ones on the as, cityu and msr corpora, but was 0.023 lower than the best one on the pku corpus.</p></section><section number="7" title="Conclusion"><p>We applied the uneven margins Perceptron to Chi­nese word segmentation. The learning algorithm is simple, fast and effective. The results obtained are encouraging.</p><table caption="Table 5: The official results on test set: F-measure (%) for close and open tests, respectively."></table><p>The performance of Perceptron was close to that of the SVM on Chinese word segmentation for large training data. On the other hand, the Perceptron took much less computation time than SVM. We implemented the Perceptron with semi-quadratic kernel in primal form. Our implemen­tation was both effective and efficient.</p><p>Our system performed well for the three of four corpora, as, cityu and msr corpora. But it was significantly worse than the best result on the pku corpora, which needs further investigation.</p></section><section title="Acknowledgements"><p>This work is supported by the EU-funded SEKT project (http://www.sekt-project.org).</p><table 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></p></td><td class="cell"><p>as</p></td><td class="cell"><p>cityu</p></td><td class="cell"><p>msr</p></td><td class="cell"><p>pku</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>close</p></td><td class="cell"><p>94.4</p></td><td class="cell"><p>93.6</p></td><td class="cell"><p>95.6</p></td><td class="cell"><p>92.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>open</p></td><td class="cell"><p>94.8</p></td><td class="cell"><p>93.6</p></td><td class="cell"><p>95.4</p></td><td class="cell"><p>93.8</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><table class="main" frame="box" rules="all" border="0" 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>close test</p></td><td class="cell"><p>English</p></td><td class="cell"><p>E&amp;N</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>95.53±0.46</p></td><td class="cell"><p>95.65±0.47</p></td><td class="cell"><p>95.78±0.46</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>8.88h</p></td><td class="cell"><p>7.66h</p></td><td class="cell"><p>7.07h</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>95.13 ±1.49</p></td><td class="cell"><p>95.25 ±1.48</p></td><td class="cell"><p>95.25 ±1.48</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>1.03h</p></td><td class="cell"><p>0.86h</p></td><td class="cell"><p>0.82h</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>94.92 ±0.36</p></td><td class="cell"><p>94.98 ±0.40</p></td><td class="cell"><p>95.00 ±0.39</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>2.62h</p></td><td class="cell"><p>1.69h</p></td><td class="cell"><p>1.62h</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>95.05 ±0.43</p></td><td class="cell"><p>95.08 ±0.36</p></td><td class="cell"><p>95.15 ±0.46</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>0.70h</p></td><td class="cell"><p>0.63h</p></td><td class="cell"><p>0.60h</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></tr></table></section><references><p>X. Carreras, L. Marquez, and L. Padro. 2003. Learn­ing a perceptron-based named entity chunker via online recognition feedback. In <i>Proceedings of CoNLL-2003, </i>pages 156-159. Edmonton, Canada.</p><p>A. Chen. 2003. Chinese Word Segmentation Using Minimal Linguistic Knowledge. In <i>Proceedings of the 2nd SIGHAN Workshop on Chinese Language Processing.</i></p><p>Y. Li, H. Zaragoza, R. Herbrich, J. Shawe-Taylor, and J. Kandola. 2002. The Perceptron Algorithm with Uneven Margins. In <i>Proceedings of the 9th Inter­national Conference on Machine Learning (ICML-2002), </i>pages 379-386.</p><p>Y. Li, K. Bontcheva, and H. Cunningham. 2005. Us­ing Uneven Margins SVM and Perceptron for Infor­mation Extraction. In <i>Proceedings of Ninth Confer­ence on Computational Natural Language Learning (CoNLL-2005).</i></p><p>N. Xue and L. Shen. 2003. Chinese Word Segmen­tation as LMR Tagging. In <i>Proceedings ofthe 2nd SIGHAN Workshop on Chinese Language Process­ing.</i></p></references></body></article>