Generating structural query language (SQL) queries from natural language is a long-standing open problem. Answering a natural language question about a database table requires modeling complex interactions between the columns of the table and the question. In this paper, we apply the synthesizing approach to solve this problem. Based on the structure of SQL queries, we break down the model to three sub-modules and design specific deep neural networks for each of them. Taking inspiration from the similar machine reading task, we employ the bidirectional attention mechanisms and character-level embedding with convolutional neural networks (CNNs) to improve the result. Experimental evaluations show that our model achieves the state-of-the-art results in WikiSQL dataset.
翻译:从自然语言中生成结构性查询语言( SQL) 是一个长期存在的未决问题。 回答关于数据库表格的自然语言问题,需要将表格各列和问题之间的复杂互动进行模型化。 在本文中,我们应用合成方法解决这一问题。 根据 SQL 查询的结构,我们将模型分成三个子模块,并为每个模块设计具体的深神经网络。 受类似机器阅读任务的启发,我们利用双向关注机制和字符级嵌入进进进进进化神经网络(CNNs)来改进结果。 实验评估显示,我们的模型实现了WikisQL数据集的最新结果。