命名实体识别是自然语言处理领域中的一个重要任务,然而在中文命名实体识别中,融入词汇信息的网格长短期记忆网络(Lattice Long Short-Term Memory Network,Lattice-LSTM)模型识别精度有限。针对该问题,提出了一种新模型。该模型通过来自Transformer的双向编码器表征(Bidirectional Encoder Representations from Transformers, Bert)模型完成数据集的预处理;再使用BiLattice-LSTM融合词级特征对中文文本进行双向语义编码,从而充分利用词中每个字的双向信息;接着利用多头注意力机制进行加权运算以更有效地提取句中深层语义信息;最后通过条件随机场(Conditional Random Field, CRF)对语义进行了解码。实验结果表明,该模型Bert-BiLattice-LSTM-MutAtt-CRF在微软亚洲研究院(Microsoft Research Asia, MSRA)数据集上F1值达到95.19%,在Resume数据集上F1值达到95.47%,相比基准模型Lattice-LSTM,F1值分别提升了2.93%和2.88%。
Named Entity Recognition (NER) stands as a pivotal task in the realm of natural language processing. However, the Lattice-LSTM model, incorporating lexical information, exhibits limited accuracy in Chinese NER. To tackle this issue, we propose the Bert-BiLattice-LSTM-MulAt-CRF model. Firstly, this model preprocesses the dataset using the Bert model and subsequently employs BiLattice-LSTM to integrate word-level features for bidirectional semantic encoding of Chinese text, which effectively leverages bidirectional information for each character in a word. And then, the model employs a multi-head attention mechanism for weighted operations, enhancing the extraction of deep semantic information within sentences. Finally, the process concludes with semantic decoding through CRF. Experimental results indicate that the model achieves an F1 score of 95.19% on the MSRA dataset and 95.47% on the Resume dataset. Compared to the baseline model Lattice-LSTM, the F1 scores have improved by 2.93% and 2.88%, respectively.
[1]赵山,罗睿,蔡志平. 中文命名实体识别综述[J]. 计算机科学与探索, 2022, 16(2):296-304.
[2]HONG-VIET T, VAN-VINH N, HOANG-QUAN N. Improving machine translation quality with denoising autoencoder and pre-ordering[J]. Journal of Computing and Information Technology, 2021, 29(1):39-56.
[3]HE Q, CHEN G W, SONG W C, et al. Prompt-based word-level information injection BERT for Chinese named entity recognition[J]. Applied Sciences, 2023, 13(5): 3331.
[4]CHENG P, ERK K. Attending to entities for better text understanding[J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2020, 34(5): 7554-7561.
[5]ALIWY A, ABBAS A, ALKHAYYAT A. NERWS: Towards improving information retrieval of digital library management system using named entity recognition and word sense[J]. Big Data and Cognitive Computing, 2021,5(4):59.
[6]PETKOVA D, CROFT W B. Proximity-based document representation for named entity retrieval[C]//Proceedings of the Sixteenth ACM Conference on Conference on Information and Knowledge Management, November 6-10,2007. Lisbon Portugal. ACM, 2007:731-740.
[7]WANG F, WU W, LI Z, et al. Named entity disambiguation for questions in community question answering[J]. Knowledge-Based Systems, 2017, 126: 68-77.
[8]ZHANG H, WANG X, LIU J, et al. Chinese named entity recognition method for the finance domain based on enhanced features and pretrained language models[J]. Information Sciences, 2023(4): 385-400.
[9]谢腾,杨俊安,刘辉.基于BERT-BiLSTM-CRF模型的中文实体识别[J].计算机系统应用,2020,29(7):48-55.
[10]杨飘,董文永.基于BERT嵌入的中文命名实体识别方法[J].计算机工程,2020,46(4):40-45.
[11]谭岩杰,陈玮,尹钟.门控空洞卷积与级联网络中文命名实体识别[J].小型微型计算机系统,2023,44(6):1198-1203.
[12]LI D Y, YAN L, YANG J Z, et al. Dependency syntax guided BERT-BiLSTM-GAM-CRF for Chinese NER[J]. Expert Systems with Applications, 2022, 196: 116682.
[13]ZHANG Y, YANG J. Chinese NER using lattice LSTM[C]//Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). July 15-20,2018. Melbourne, Australia. ACL, 2018: 1554-1564.
[14]LI X N, YAN H, QIU X P, et al. FLAT: Chinese NER using flat-lattice transformer[C]//Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. July 5-10, 2020. Online. ACL, 2020: 6836-6842.
[15]ZHU Y Y, WANG G X. CAN-NER: Convolutional attention network for Chinese named entity recognition[C]//2019 Conference of the North American Chapter of the Association for Computational Linguistic: Human Language Technologies (NAACL HLT 2019). June 2-7,2019. Minneapolis, Minnesota, USA. ACL, 2019:3384-3393.
[16]秦苗苗.基于深度学习的人物关系抽取方法研究与应用[D].郑州:郑州轻工业大学,2022.
[17]DEVLIN J, CHANG M W, LEE K, et al. Bert: Pre-training of deep bidirectional transformers for language understanding[C]//2019 Conference of the North American Chapter of the Association for Computational Linguistic: Human Language Technologies (NAACL HLT 2019). June 2-7,2019. Minneapolis, Minnesota, USA. ACL, 2019:4171-4186.
[18]MAO C, LIANG H, YU Z, et al. A clustering method of case-involved news by combining topic network and multi-head attention mechanism[J]. Sensors, 2021, 21(22): 7501.
[19]LAFFERTY J D, MCCALLUM A, PEREIRA F C N. Conditional random fields: Probabilistic models for segmenting and labeling sequence data[C]//Proceedings of the Eighteenth International Conference on Machine Learning (ICML'01). June 28-Jully 01,2001. San Francisco, California, USA. Morgan Kaufmann Publishers Inc., 2001: 282-289.
[20]LEVOW G A. The third international Chinese language processing bakeoff: Word segmentation and named entity recognition[C/OL]//Proceedings of the Fifth Sighan workshop on Chinese language processing. 2006. (2006-07-01)[2023-11-27]. https://aclanthology.org/W06-0115.pdf.