arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1905.08205cs.CL
收藏

跨域数据库中复杂文本到SQL的中间表示

Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation

Xi’an Jiaotong University(西安交通大学);Beijing University of Posts and Telecommunications(北京邮电大学);Microsoft Research Asia(微软亚洲研究院)

Jiaqi Guo, Zecheng Zhan, Yan Gao, Yan Xiao, Jian-Guang Lou, Ting Liu, Dongmei Zhang

摘要:

我们提出了一种称为IRNet的神经方法,用于复杂和跨域的Text-to-SQL。IRNet旨在解决两个挑战:1)用自然语言(NL)表达的意图与SQL中的实现细节之间的不匹配; 2)由大量域外单词引起的预测列的挑战。IRNet不是端到端合成SQL查询,而是将合成过程分解为三个阶段。在第一阶段,IRNet在问题和数据库模式之间执行模式链接。然后,IRNet采用基于语法的神经模型来合成SemQL查询,这是我们设计的中间表示,以桥接NL和SQL。最后,IRNet确定性地从具有领域知识的合成SemQL查询中推断SQL查询。在具有挑战性的Text-to-SQL基准测试Spider上,IRNet实现了46.7%的准确率,比以前的最先进方法获得了19.5%的绝对改进。在撰写本文时,IRNet在Spider排行榜上排名第一。

英文摘要:

We present a neural approach called IRNet for complex and cross-domain Text-to-SQL. IRNet aims to address two challenges: 1) the mismatch between intents expressed in natural language (NL) and the implementation details in SQL; 2) the challenge in predicting columns caused by the large number of out-of-domain words. Instead of end-to-end synthesizing a SQL query, IRNet decomposes the synthesis process into three phases. In the first phase, IRNet performs a schema linking over a question and a database schema. Then, IRNet adopts a grammar-based neural model to synthesize a SemQL query which is an intermediate representation that we design to bridge NL and SQL. Finally, IRNet deterministically infers a SQL query from the synthesized SemQL query with domain knowledge. On the challenging Text-to-SQL benchmark Spider, IRNet achieves 46.7% accuracy, obtaining 19.5% absolute improvement over previous state-of-the-art approaches. At the time of writing, IRNet achieves the first position on the Spider leaderboard.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑