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

利用数据库规则实现弱监督的Text-to-SQL生成

Using Database Rule for Weak Supervised Text-to-SQL Generation

Rokid AI Lab(Rokid人工智能实验室);China Electronic Technology Group Corporation Information Science Academy(中国电子科技集团公司信息科学研究院)

Tong Guo, Huilin Gao

摘要:

我们提出了一个简单的方法来做的任务,文本到SQL的问题,弱监督。我们称之为规则SQL。在没有SQL逻辑形式的数据库表中给定问题和答案,Rule-SQL首先使用基于表列名和问题字符串的规则进行SQL探索,然后使用探索的SQL进行监督训练。我们设计了一些规则来减少探索搜索空间。对于深层模型,我们利用BERT作为表示层,并将模型分为SELECT、AGG和WHERE部分。在WikiSQL上的实验结果优于完全监督的强基线,并且与最新的弱监督方法相当。

英文摘要:

We present a simple way to do the task of text-to-SQL problem with weak supervision. We call it Rule-SQL. Given the question and the answer from the database table without the SQL logic form, Rule-SQL use the rules based on table column names and question string for the SQL exploration first and then use the explored SQL for supervised training. We design several rules for reducing the exploration search space. For the deep model, we leverage BERT for the representation layer and separate the model to SELECT, AGG and WHERE parts. The experiment result on WikiSQL outperforms the strong baseline of full supervision and is comparable to the start-of-the-art weak supervised mothods.

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

↑