arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.06241cs.CL
收藏

用图神经网络表示文本到SQL的模式结构

Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsing

Tel-Aviv University(特拉维夫大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所)

Ben Bogin, Matt Gardner, Jonathan Berant

摘要:

对SQL解析语言的研究在很大程度上忽略了数据库(DB)模式的结构,要么是因为DB非常简单,要么是因为它在训练和测试时都被观察到。在Spider(最近发布的文本到SQL数据集)中,在测试时会给出新的和复杂的DB,因此DB模式的结构可以通知预测的SQL查询。在本文中,我们提出了一个编码器-解码器的语义解析器,其中的DB模式的结构是用一个图神经网络编码,这种表示是后来在编码和解码时使用。评估表明,对模式结构进行编码将我们的解析器准确率从33.8%提高到39.4%,大大高于目前的19.7%。

英文摘要:

Research on parsing language to SQL has largely ignored the structure of the database (DB) schema, either because the DB was very simple, or because it was observed at both training and test time. In Spider, a recently-released text-to-SQL dataset, new and complex DBs are given at test time, and so the structure of the DB schema can inform the predicted SQL query. In this paper, we present an encoder-decoder semantic parser, where the structure of the DB schema is encoded with a graph neural network, and this representation is later used at both encoding and decoding time. Evaluation shows that encoding the schema structure improves our parser accuracy from 33.8% to 39.4%, dramatically above the current state of the art, which is at 19.7%.

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

↑