农业图书情报学报 ›› 2023, Vol. 35 ›› Issue (7): 52-62.doi: 10.13998/j.cnki.issn1002-1248.23-0355

• 研究论文 • 上一篇    下一篇

古农文语义检索模型构建及其应用研究

刘楠竹1,2, 崔运鹏1,2,*, 王末1,2   

  1. 1.中国农业科学院农业信息研究所,北京 100081;
    2.农业农村部 农业大数据重点实验室,北京 100081
  • 收稿日期:2023-05-29 出版日期:2023-07-05 发布日期:2023-09-20
  • 通讯作者: *崔运鹏(1972- ),男,博士,研究员,研究方向为农业信息技术、农业知识管理、数据挖掘技术研究。Email:cuiyunpeng@caas.cn
  • 作者简介:刘楠竹(1991- ),女,硕士研究生,研究方向为图书情报。王末(1987- ),男,博士,副研究员,研究方向为农业信息技术、农业知识管理、数据挖掘技术研究
  • 基金资助:
    国家社会科学基金重大项目“中国古农书的搜集、整理与研究”(21&ZD332)

Construction and Application of Semantic Retrieval Model for Ancient Agricultural Literature

LIU Nanzhu1,2, CUI Yunpeng1,2,*, WANG Mo1,2   

  1. 1. Institute of Agricultural Information, Chinese Academy of Agricultural Sciences, Beijing 100081;
    2. Key Laboratory of Agricultural Big Data, Ministry of Agriculture and Rural Affairs, Beijing 100081
  • Received:2023-05-29 Online:2023-07-05 Published:2023-09-20

摘要: [目的/意义]构建能实现以白话文作为查询,系统自动返回与输入最相关的古农文段落的语义检索模型,为学者提供更加便利的古代农业知识检索方式和古代农业知识溯源方式。[方法/过程]使用基于四库全书作为训练语料的SikuBERT作为基础模型,基于对比学习的方法,使用自建的古农文数据集对模型进行继续训练,得到能够支持使用白话文作为查询,返回与查询语义最相似的古农文段落的语义检索模型。[结果/结论]古农文语义检索模型的Spearman系数在测试集上的表现能够达到86.51%,较基线模型在测试集上的表现83.69%有一定程度的提升,在自建的古农文检索测试集上的召回情况(recall@k)较基线模型有一定程度提升,模型在古农文上能够有比较好的检索效果。但受限于古农文训练语料规模,模型的训练效果还有很大提升空间。

关键词: 古农文, 语义检索, 对比学习, 模型构建, 深度学习

Abstract: [Purpose/Significance] The ancient Chinese agricultural books are the main carrier of traditional agricultural experience, and represent the productivity and the essence of agricultural history in China. The value of agricultural knowledge in them has not disappeared with the progress of the times, and still has practical guidance for the problems that arise in modern agriculture. However, the ancient Chinese agricultural books are written in ancient Chinese, which are obscure and without punctuation, making them difficult to use. Semantic retrieval is a retrieval method that automatically queries and extracts relevant information from information sources at the semantic level. It can accurately capture the true intention behind user problems and conduct searches based on it, and thereby it is capable of returning more accurate and the most consistent results to users. However, currently most relevant research only focuses on major languages, and there is insufficient research on sentence embedding in ancient Chinese prose. In order to fill the gap in the field and provide scholars with more convenient methods for retrieving ancient agricultural knowledge and tracing ancient agricultural knowledge, this study is based on comparative learning methods to construct a semantic retrieval model that can automatically return the most relevant ancient agricultural paragraph with input, using vernacular Chinese as the query. [Method/Process] SikuBERT, which is based on Siku Quanshu as the training corpus, is used as the basic model. Based on the method of comparative learning, the model is continued to be trained using the self-built ancient agricultural dataset, and a semantic retrieval model that can support the use of vernacular as a query and return the ancient agricultural paragraphs most similar to the query semantics is obtained. [Results/Conclusions] The Spearman coefficient of the ancient agricultural text semantic retrieval model can achieve 86.51% performance on the test set, which is a certain degree of improvement compared to the baseline model's 83.69% performance on the test set. The recall situation on the self built ancient agricultural literature retrieval test set has been improved to a certain extent compared to the baseline model, and the model can have good retrieval results on ancient agricultural literature. However, semantic retrieval models usually require relevant semantic similarity datasets or semantic matching datasets for training. Due to the lack of large-scale and pure ancient Chinese data in the field of ancient agricultural literature, and the high cost of constructing relevant datasets requiring personnel with high-standard relevant professional qualifications, this experiment used a self-built dataset for training, which is limited by the quantity and quality of ancient agricultural language corpus data. The current semantic retrieval model for ancient agricultural literature is still not as effective as expected. In the future, we will search for training methods suitable for small samples, such as transfer learning based on cross language pre-training models to improve the retrieval performance.

Key words: ancient agricultural script, semantic retrieval, comparative learning, model building, deep learning

中图分类号: 

  • TP391

引用本文

刘楠竹, 崔运鹏, 王末. 古农文语义检索模型构建及其应用研究[J]. 农业图书情报学报, 2023, 35(7): 52-62.

LIU Nanzhu, CUI Yunpeng, WANG Mo. Construction and Application of Semantic Retrieval Model for Ancient Agricultural Literature[J]. Journal of Library and Information Science in Agriculture, 2023, 35(7): 52-62.