计算机科学
SQL语言
按示例查询
数据定义语言
PL/SQL
栏(排版)
存储过程
SQL注入
SQL/PSM
表(数据库)
程序设计语言
人工智能
数据库
情报检索
自然语言处理
Web搜索查询
搜索引擎
帧(网络)
电信
作者
Aibo Guo,Xiang Zhao,Wubin Ma
出处
期刊:Neurocomputing
[Elsevier BV]
日期:2021-09-06
卷期号:465: 359-370
被引量:10
标识
DOI:10.1016/j.neucom.2021.08.134
摘要
Text-to-SQL emerges to play an important role in interactive data analysis, which provides a friendly interface for converting natural language into relational database language (i.e., SQL). In order to translate a user's query into an executable SQL statement, semantic parsing is essential to the transformation process. In particular, existing efforts provide some feasible solutions, and state-of-the-art models mainly adopt the sketch-based paradigm such that template values are to be filled. To this end, most methods extract values based on column representations. However, if the query contains multiple values that belong to different columns, these methods may fail to extract the values accurately. Moreover, it can be difficult to infer the right values when the query does not explicitly mention the corresponding column names. To bridge the gap, we propose a novel neural architecture, namely, ER-SQL for learning enhanced representations for Text-to-SQL. Based on pre-trained model BERT, ER-SQL uses column contents to better extract features of columns. Moreover, ER-SQL harnesses the column representations to latently reformulate the query. To verify the effectiveness of ER-SQL, comprehensive experiments demonstrate that ER-SQL achieves better results than existing models on the benchmark dataset WikiSQL, as well as on a representative Chinese dataset TableQA.
科研通智能强力驱动
Strongly Powered by AbleSci AI