期刊文献+

辅助任务增强的中文跨域NL2SQL算法

Chinese cross-domain NL2SQL algorithm enhanced by auxiliary task
下载PDF
导出
摘要 自然语言到结构化查询语言(natural language to structured query language,NL2SQL)任务旨在将自然语言询问转化为数据库可执行的结构化查询语言(structured query language,SQL)语句。本文提出了一种辅助任务增强的中文跨域NL2SQL算法,其核心思想是通过在解码阶段添加辅助任务以结合原始模型来进行多任务训练,提升模型的准确率。辅助任务的设计是通过将数据库模式建模成图,预测自然语言询问与数据库模式图中的节点的依赖关系,显式地建模自然语言询问和数据库模式之间的依赖关系。针对特定的自然语言询问,通过辅助任务的提升,模型能够更好地识别数据库模式中哪些表/列对预测目标SQL更有效。在中文NL2SQL数据集DuSQL上的实验结果表明,添加辅助任务后的算法相对于原始模型取得了更好的效果,能够更好地处理跨域NL2SQL任务。 NL2SQL(natural language to structured query language)task aims to translate natural language queries into SQL(structured query language)executable by the database.A Chinese cross-domain NL2SQL algorithm enhanced by auxiliary tasks was proposed.Core idea was to perform multi-task training and improve the accuracy of the model by adding auxiliary tasks in the decoder and combining the prototype model.Auxiliary task was designed by modeling the database schema into a graph,predicting the dependency relations between the natural language queries and the nodes in the database schema graph,and explicitly modeling the dependency relations between the natural language query and the database schema.Through the improvement of auxiliary tasks,the model can better identify which tables/columns in the database schema are more effective for predicting the target SQL for specific natural language queries.Experimental results on the Chinese NL2SQL dataset DuSQL show that the algorithm after adding auxiliary tasks has achieved better results than the prototype model,and can better handle cross-domain NL2SQL task.
作者 胡亚红 刘亚冬 朱正东 刘鹏杰 HU Yahong;LIU Yadong;ZHU Zhengdong;LIU Pengjie(College of Computer Science and Technology,Zhejiang University of Technology,Hangzhou 310023,China;School of Software Engineering,Xi′an Jiaotong University,Xi′an 710049,China;School of Computer Science and Technology,Xi′an Jiaotong University,Xi′an 710049,China)
出处 《国防科技大学学报》 EI CAS CSCD 北大核心 2024年第2期197-204,共8页 Journal of National University of Defense Technology
基金 国家重点研发计划资助项目(2018YFB0204003,2018YFB0204004)。
关键词 人工智能 深度学习 自然语言处理 语义解析 artificial intelligence deep learning natural language processing semantic parsing
  • 相关文献

参考文献2

二级参考文献4

  • 1孟小峰,王珊.嵌套查询的非嵌套化处理研究[J].计算机学报,1995,18(4):241-251. 被引量:2
  • 2孟小峰,J Comput Sci Technol,2000年,15卷,4期,346页
  • 3Wu X,Knowledge Base Assisted Database Retrieval Systems,1996年
  • 4刘开瑛,自然语言处理,1991年

共引文献30

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部