Please wait a minute...
Data Analysis and Knowledge Discovery  2017, Vol. 1 Issue (5): 62-70    DOI: 10.11925/infotech.2096-3467.2017.05.08
Orginal Article Current Issue | Archive | Adv Search |
Automatically Segmenting Middle Ancient Chinese Words with CRFs
Wang Xiaoyu, Li Bin()
School of Chinese Language and Literature, Nanjing Normal University, Nanjing 210097, China
Download: PDF (477 KB)   HTML ( 5
Export: BibTeX | EndNote (RIS)      
Abstract  

[Objective] The purpose of this paper is to explore the influence of the word segmentation consistency and the corpus types in Middle Ancient Chinese (MAC). It tries to improve the accuracy and efficiency of the automatic word segmentation, a basic procedure in processing ancient Chinese, based on the CRFs model. [Methods] First, we optimized the segmentation principles for MAC historical records, Buddhist scriptures and novels. Then, we combined the CRFs model with dictionary to reduce the segmentation inconsistency in the manual procedures. Finally, we added two features to the CRFs model (i.e. character classification and dictionary information), and identified the best word segmentation template by comparison experiments. [Results] The F-score was higher than 99% in the closed test, while it was from 89% to 95% in the open test. [Limitations] The segmentation consistency was improved on the words with two characters, and more studies were needed on the segmentation of words with more than three characters. [Conclusions] The proposed method could effectively improve the accuracy of automatic word segmentation for mediaeval Chinese corpus.

Key wordsConditional Random Fields Model      Segmentation Consistency      Middle Ancient Chinese      Word Segmentation     
Received: 14 March 2017      Published: 06 June 2017
ZTFLH:  TP391  

Cite this article:

Wang Xiaoyu,Li Bin. Automatically Segmenting Middle Ancient Chinese Words with CRFs. Data Analysis and Knowledge Discovery, 2017, 1(5): 62-70.

URL:

https://manu44.magtech.com.cn/Jwk_infotech_wk3/EN/10.11925/infotech.2096-3467.2017.05.08     OR     https://manu44.magtech.com.cn/Jwk_infotech_wk3/EN/Y2017/V1/I5/62

语料类别 训练语料 测试语料
语料来源 字数 总字数 语料来源 字数 总字数
史书类 后汉书(卷1、34、74; 卷2、75、38未完) 70 344 145 292 北齐书(卷1-4, 开放测试) 27 189 44 979
三国志(魏书卷1-3; 卷4未完; 吴书卷46、卷49) 62 093 三国志(魏书卷1-2, 封闭测试) 17 790
陈书(卷1-16; 卷27-36) 12 855
佛经类 撰集百缘经 80 588 99 157 百喻经(开放测试) 21 552 35 209
杂譬喻经二种 18 569 杂譬喻经–失译(封闭测试) 13 657
小说类 幽明录 36 718 36 718
总计 281 167 80 188
字符 字符类别 词典标记 标准答案
HZ B S
HZ T B
HZ T E
: Punc W W
CNum B B
HZ E E
HZ S S
HZ S S
HZ T B
HZ T M
HZ E E
, SenPunc W W
特征
统计结果
仅字面信息 字面(1W+2C)+字符分类 字面(1W+2C)+词典 Template-all
1W 2W 1W+2C 2W+2C 0W 1W 2C 1W+2C 0W 1W 2C 1W+2C
单字词数 1 710 568 1 918 648 1 300 1 403 1 814 1 384 1 532 1 597 1 866 1 790 1 747
双字词数 970 1 541 866 1 501 1 094 1 042 819 1 045 923 906 803 837 833
多字词数 0 0 0 0 0 0 4 4 16 16 20 20 22
正确分词数 1 127 849 1 223 885 1 120 1 135 1 354 1 147 1 910 1 975 2 033 2 164 2 229
总P(%) 42.05% 40.26% 43.93% 41.18% 46.78% 46.42% 51.35% 47.14% 77.30% 78.40% 75.60% 81.75% 85.66%
总R(%) 43.02% 32.40% 46.68% 33.78% 42.75% 43.32% 51.68% 43.78% 72.90% 75.38% 77.60% 82.60% 85.08%
总F(%) 42.53% 35.91% 45.26% 37.11% 44.67% 44.82% 51.51% 45.40% 75.03% 76.86% 76.59% 82.17% 85.37%
双字词正确数 361 535 334 522 446 414 347 423 592 640 620 634 662
双字词P(%) 37.22% 34.72% 38.57% 34.78% 40.77% 39.73% 42.37% 40.48% 64.14% 70.64% 77.21% 75.75% 79.47%
双字词R(%) 47.81% 70.86% 44.24% 69.14% 59.07% 54.83% 45.96% 56.03% 78.41% 84.77% 82.12% 83.97% 87.68%
双字词F(%) 41.86% 46.60% 41.21% 46.28% 48.24% 46.08% 44.09% 47.00% 70.56% 77.06% 79.59% 79.65% 83.38%
训练
语料
测试语料 分 词 结 果(CRFs分词结果的词数与PRF值)
单字词 双字词 多字词 总P
(%)
总R
(%)
总F
(%)
F值
变化率
双字词P(%) 双字词R(%) 双字词F(%) F值
变化率
多字词P(%) 多字词R(%) 多字词F(%) F值
变化率
原语料 史书 7 764 3 263 80 82.05% 85.62% 83.79%
15.70%
81.67% 80.86% 81.26%
18.15%
70.00% 20.59% 31.82%
66.71%
一致后 7 058 3 309 270 99.53% 99.46% 99.50% 99.21% 99.61% 99.41% 98.89% 98.16% 98.52%
原语料 佛经 5 333 2 690 70 88.08% 85.67% 86.86%
12.38%
78.55% 89.95% 83.87%
15.33%
50.00% 26.12% 34.31%
58.28%
一致后 5 823 2 355 136 99.28% 99.21% 99.24% 99.07% 99.32% 99.19% 91.91% 93.28% 92.59%
训练语料 测试语料 分 词 结 果(CRFs分词结果的词数与PRF值)
单字词 双字词 多字词 总P
(%)
总R
(%)
总F
(%)
F值
变化率
双字词P(%) 双字词R(%) 双字词F(%) F值
变化率
多字词P(%) 多字词R(%) 多字词F(%) F值
变化率
史书 史书 7 764 3 263 80 99.73% 99.71% 99.72%
0.22%
99.61% 99.79% 99.70%
0.29%
99.26% 98.90% 99.08%
0.56%
综合 7 058 3 309 270 99.53% 99.46% 99.50% 99.21% 99.61% 99.41% 98.89% 98.16% 98.52%
佛经 佛经 5 333 2 690 70 99.44% 99.45% 99.44%
0.20%
99.53% 99.32% 99.42%
0.23%
93.43% 95.52% 94.46%
1.87%
综合 5 823 2 355 136 99.28% 99.21% 99.24% 99.07% 99.32% 99.19% 91.91% 93.28% 92.59%
训练
语料
测试语料 分 词 结 果(CRFs分词结果的词数与PRF值)
单字
双字
多字词 总P
(%)
总R
(%)
总F
(%)
F值
变化率
双字词P(%) 双字词R(%) 双字词F(%) F值
变化率
多字词P(%) 多字词R(%) 多字词F(%) F值
变化率
原语料 史书 10 745 5 520 230 80.24% 85.27% 82.67%
6.98%
83.22% 84.51% 83.86%
6.40%
62.17% 20.11% 30.39%
29.74%
一致后 9 834 5 503 513 88.73% 90.61% 89.66% 89.71% 90.82% 90.26% 71.73% 51.76% 60.13%
原语料 佛经 8 482 4 203 76 92.30% 88.46% 90.34%
4.13%
81.51% 94.72% 87.62%
5.38%
60.53% 52.87% 56.44%
7.89%
一致后 9 113 3 875 84 95.35% 93.61% 94.47% 89.91% 96.32% 93.01% 65.48% 63.22% 64.33%
训练语料 测试语料 分词结果(CRFs分词结果的词数与PRF值)
单字词 双字
多字词 总P
(%)
总R
(%)
总F
(%)
F值
变化率
双字词P(%) 双字词R(%) 双字词F(%) F值变化率 多字词P(%) 多字词R(%) 多字词F(%) F值变化率
史书 史书 9 668 5 562 526 88.61% 89.94% 89.27%
0.39%
88.76% 90.82% 89.78%
0.48%
68.82% 50.91% 58.53%
1.60%
综合 9 834 5 503 513 88.73% 90.61% 89.66% 89.71% 90.82% 90.26% 71.73% 51.76% 60.13%
佛经 佛经 9 085 3 902 76 94.82% 93.02% 93.91%
0.56%
89.06% 96.07% 92.43%
0.57%
65.79% 57.47% 61.35%
2.98%
综合 9 113 3 875 84 95.35% 93.61% 94.47% 89.91% 96.32% 93.01% 65.48% 63.22% 64.33%
[1] 化振红. 深加工中古汉语语料库建设的若干问题[J]. 西南大学学报: 社会科学版, 2014, 40(3): 136-142.
doi: 10.3969/j.issn.1673-9841.2014.03.020
[1] (Hua Zhenhong.Some Problems in the Deep Processing of the Medieval Chinese Corpus Construction[J]. Journal of Southwest University: Social Science Edition, 2014, 40(3): 136-142.)
doi: 10.3969/j.issn.1673-9841.2014.03.020
[2] 王嘉灵. 以《汉书》为例的中古汉语自动分词[D]. 南京: 南京师范大学, 2014.
[2] (Wang Jialing.The Medieval Chinese Automatic Segmentation Using the “Han Shu” as an Example [D]. Nanjing: Nanjing Normal University, 2014. )
[3] 王晓玉, 董志翘. 中古汉语分词不一致原因探讨[J]. 汉语史研究集刊, 2015, 19: 20-33
[3] (Wang Xiaoyu, Dong Zhiqiao.The Investigation of Middle Ancient Chinese Word Segmentation’s Inconsistency[J]. The Collected Papers of the Chinese History Study, 2015, 19:20-33.)
[4] GB-T13715-1992. 信息处理用现代汉语分词规范[S].北京: 中国标准出版社, 1993.
[4] (GB-T13715-1992. Contemporary Chinese Language Word Segmentation Specification for Information Processing [S]. Beijing: China Standard Press, 1993.)
[5] 罗竹风,等. 汉语大词典[M]. 上海: 上海辞书出版社, 2011.
[5] (Luo Zhufeng, et al.The Great Chinese Dictionary [M]. Shanghai: Shanghai Lexicographical Publishing House, 2011.)
[6] 蔡镜浩. 魏晋南北朝词语例释[M]. 南京: 江苏古籍出版社, 1990.
[6] (Cai Jinghao. Wei, Jin, Southern and Northern Dynasties Words and Expressions [M]. Nanjing: Jiangsu Ancient Books Publishing House, 1990.)
[7] 董志翘, 蔡镜浩. 中古虚词语法例释[M]. 长春: 吉林教育出版社, 1994.
[7] (Dong Zhiqiao, Cai Jinghao.Middle Ancient Function Words and Expressions [M]. Changchun: Jilin Education Publishing House, 1994.)
[8] 丁福保. 佛学大辞典[M]. 北京: 中国书店出版社, 2011.
[8] (Ding Fubao.Buddhist Dictionary [M]. Beijing: China Bookstore Publishing House, 2011.)
[9] 李维琦, 蒋冀骋. 佛经词语汇释[M]. 长沙: 湖南师大出版社, 2004.
[9] (Li Weiqi, Jiang Jicheng.Sutras Words Explanations [M]. Changsha: Hunan Normal University Publishing House, 2004.)
[10] 黄居仁, 陈克健, 陈凤仪,等. 《资讯处理用中文分词规范》设计理念及规范内容[J]. 语言文字应用, 1997(1):94-102.
[10] (Huang Juren, Chen Kejian, Chen Fengyi, et al.A Segmentation Standard for Chinese Information Processing: Design Criteria and Content[J]. Journal of Applied Linguistics, 1997(1): 94-102.)
[11] 黄昌宁, 赵海. 中文分词十年回顾[J]. 中文信息学报, 2007, 21(3): 8-19.
[11] (Huang Changning, Zhao Hai.Chinese Word Segmentation: A Decade Review[J]. Journal of Chinese Information Processing, 2007, 21(3): 8-19.)
[12] 吴琼, 黄德根. 基于条件随机场与时间词库的中文时间表达式识别[J]. 中文信息学报, 2014, 28(6): 169-174.
doi: 10.3969/j.issn.1003-0077.2014.06.024
[12] (Wu Qiong, Huang Degen.Temporal Information Extraction Based on CRF and Time Thesaurus[J]. Journal of Chinese Information Processing, 2014, 28(6): 169-174.)
doi: 10.3969/j.issn.1003-0077.2014.06.024
[13] 段宇锋, 朱雯晶, 陈巧, 等. 条件随机场与领域本体元素集相结合的未登录词识别研究[J]. 现代图书情报技术, 2015(4): 41-49.
[13] (Duan Yufeng, Zhu Wenjing, Chen Qiao, et al.The Study on Out-of-Vocabulary Identification on a Model Based on the Combination of CRFs and Domain Ontology Elements Set[J]. New Technology of Library and Information Service, 2015(4): 41-49.)
[14] 修驰. 适应于不同领域的中文分词方法研究与实现[D]. 北京: 北京工业大学, 2013.
[14] (Xiu Chi.The Research and Implementation of Chinese Word Segmentation for Different Domains [D]. Beijing: Beijing University of Technology, 2013.)
[15] 宋彦, 蔡东风, 张桂平, 等. 一种基于字词联合解码的中文分词方法[J]. 软件学报, 2009, 20(9): 2366-2375.
doi: 10.3724/SP.J.1001.2009.03606
[15] (Song Yan, Cai Dongfeng, Zhang Guiping, et al.Approach to Chinese Word Segmentation Based on Character-Word Joint Decoding[J]. Journal of Software, 2009, 20(9): 2366-2375.)
doi: 10.3724/SP.J.1001.2009.03606
[16] 石民, 李斌, 陈小荷. 基于CRF的先秦汉语分词标注一体化研究[J]. 中文信息学报, 2010, 24(2): 39-45.
doi: 10.3969/j.issn.1003-0077.2010.02.005
[16] (Shi Min, Li Bin, Chen Xiaohe.CRF Based Research on a Unified Approach to Word Segmentation and POS Tagging for Pre-Qin Chinese[J]. Journal of Chinese Information Processing, 2010, 24(2): 39-45.)
doi: 10.3969/j.issn.1003-0077.2010.02.005
[17] Zhao H, Kit C Y.An Empirical Comparison of Goodness Measures for Unsupervised Chinese Word Segmentation with a Unified Framework[C]//Proceedings of IJCNLP 2008, Hyderabad, India. 2008: 9-16.
[1] Zhang Qi,Jiang Chuan,Ji Youshu,Feng Minxuan,Li Bin,Xu Chao,Liu Liu. Unified Model for Word Segmentation and POS Tagging of Multi-Domain Pre-Qin Literature[J]. 数据分析与知识发现, 2021, 5(3): 2-11.
[2] Xianlai Chen,Chaopeng Han,Ying An,Li Liu,Zhongmin Li,Rong Yang. Extracting New Words with Mutual Information and Logistic Regression[J]. 数据分析与知识发现, 2019, 3(8): 105-113.
[3] Feng Guoming,Zhang Xiaodong,Liu Suhui. DBLC Model for Word Segmentation Based on Autonomous Learning[J]. 数据分析与知识发现, 2018, 2(5): 40-47.
[4] Ni Weijian,Sun Haohao,Liu Tong,Zeng Qingtian. An Unsupervised Approach to Optimize Chinese Word Segmentation on Domain Literature[J]. 数据分析与知识发现, 2018, 2(2): 96-104.
[5] Zhang Yue,Wang Dongbo,Zhu Danhao. Segmenting Chinese Words from Food Safety Emergencies[J]. 数据分析与知识发现, 2017, 1(2): 64-72.
[6] Yu Xincong, Li Honglian, Lv Xueqiang. Research on the Application of Hyponymy in the Enrollment Robot[J]. 现代图书情报技术, 2015, 31(12): 65-71.
[7] Zhang Jie, Zhang Haichao, Zhai Dongsheng. Research of the Word Segmentation for Chinese Patent Claims[J]. 现代图书情报技术, 2014, 30(9): 91-98.
[8] Li Wenjiang, Chen Shiqin. Application of AIMLBot Intelligent Robot in Real-time Virtual Reference Service[J]. 现代图书情报技术, 2012, 28(7): 127-132.
[9] Jiang Hua, Su Xiaoguang. Chinese High-frequency Words Extraction Algorithm Without Thesaurus[J]. 现代图书情报技术, 2012, 28(6): 50-53.
[10] Shi Chongde, Wang Huilin. Research on Chinese Word Segmentation Optimization in Statistical Machine Translation[J]. 现代图书情报技术, 2012, 28(4): 29-34.
[11] Gu Jun, Wang Hao. Study on Term Extraction on the Basis of Chinese Domain Texts[J]. 现代图书情报技术, 2011, 27(4): 29-34.
[12] Mai Fanjin,Wang Ting. Sense Disambiguation of Chinese Segmentation Based on Bi-direction Matching Method and HMM[J]. 现代图书情报技术, 2008, 24(8): 37-41.
[13] Xie Hui,Qin Jie,Hu Shuangshuang. The Study on the Duplicated Web Pages Detection Algorithm Based on the Keyword from User’s Submission[J]. 现代图书情报技术, 2008, 24(7): 43-46.
[14] Zhang Jinzhu,Zhang Dong,Wang Huilin. The Research of Character-Position-Based Chinese Word Segmentation[J]. 现代图书情报技术, 2008, 24(5): 39-43.
[15] Tan Chunmei,Yan Shiwei,Liu Zimu. Design and Realization of Knowledge Element Automatic Extraction of Network Special Subject Knowledge Organization[J]. 现代图书情报技术, 2008, 24(3): 62-67.
  Copyright © 2016 Data Analysis and Knowledge Discovery   Tel/Fax:(010)82626611-6626,82624938   E-mail:jishu@mail.las.ac.cn