arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.06434cs.DBcs.AIcs.LG
收藏

TableQA:一个面向表意识SQL生成的大规模中文文本到SQL数据集

TableQA: a Large-Scale Chinese Text-to-SQL Dataset for Table-Aware SQL Generation

Zhuiyi Technology(追一科技)

Ningyuan Sun, Xuefeng Yang, Yunfeng Liu

摘要:

近年来,利用数据驱动的方法如深度神经网络将自然语言解析为相应的SQL(NL 2SQL)引起了人们的广泛关注。现有的NL 2SQL数据集假设条件值应该精确地出现在自然语言问题中,并且查询在给定表的情况下是可回答的。然而,这些假设在实际场景中可能会失败,因为用户可能会对表中的相同内容使用不同的表达式,并且在不了解表中内容的情况下查询表外的信息。因此,我们提出了TableQA,一个大规模的跨领域的自然语言到SQL数据集在中国的语言,包括64,891个问题和20,311个独特的SQL查询超过6,000表。与查询NL 2SQL数据集不同,TableQA不仅需要很好地泛化到不同问题和表模式的SQL骨架,而且还需要泛化到各种条件值的表达式。实验结果表明,在WikiSQL上具有95.1%条件值准确率的最先进模型在TableQA上仅获得46.8%的条件值准确率和43.0%的逻辑形式准确率,表明所提出的数据集具有挑战性和必要性。提出了两种表感知的方法来缓解这个问题,端到端方法在条件值和逻辑形式任务上获得了51.3%和47.4%的准确率,分别提高了4.7%和3.4%。

英文摘要:

Parsing natural language to corresponding SQL (NL2SQL) with data driven approaches like deep neural networks attracts much attention in recent years. Existing NL2SQL datasets assume that condition values should appear exactly in natural language questions and the queries are answerable given the table. However, these assumptions may fail in practical scenarios, because user may use different expressions for the same content in the table, and query information outside the table without the full picture of contents in table. Therefore we present TableQA, a large-scale cross-domain Natural Language to SQL dataset in Chinese language consisting 64,891 questions and 20,311 unique SQL queries on over 6,000 tables. Different from exisiting NL2SQL datasets, TableQA requires to generalize well not only to SQL skeletons of different questions and table schemas, but also to the various expressions for condition values. Experiment results show that the state-of-the-art model with 95.1% condition value accuracy on WikiSQL only gets 46.8% condition value accuracy and 43.0% logic form accuracy on TableQA, indicating the proposed dataset is challenging and necessary to handle. Two table-aware approaches are proposed to alleviate the problem, the end-to-end approaches obtains 51.3% and 47.4% accuracy on the condition value and logic form tasks, with improvement of 4.7% and 3.4% respectively.

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

↑