为弹性SQL聊天机器人嵌入单个表列
Embedding Individual Table Columns for Resilient SQL Chatbots
摘要:
世界上的大部分数据都存储在关系数据库中。解决这些问题需要结构化查询语言(SQL)的专业知识,这使许多人无法理解。自然语言处理(NLP)中的一个最近的研究线程旨在通过将自然语言问题自动转换为SQL查询来缓解这个问题。虽然提出的解决方案是一个很好的开始,但它们缺乏鲁棒性,并且不容易推广:这些方法需要对数据库表列进行高质量的描述,而最广泛使用的训练数据集WikiSQL严重倾向于将这些描述作为问题的一部分。在这项工作中,我们提出了两个问题的解决方案:我们完全消除了列描述的需要,仅仅依靠它们的内容,我们通过解释列名来增加WikiSQL数据集以减少偏差。我们表明,当在我们的增强的列不可知数据集上训练时,现有方法的准确性下降,而我们自己的方法达到了最先进的准确性,同时仅依赖于列内容。
英文摘要:
Most of the world's data is stored in relational databases. Accessing these requires specialized knowledge of the Structured Query Language (SQL), putting them out of the reach of many people. A recent research thread in Natural Language Processing (NLP) aims to alleviate this problem by automatically translating natural language questions into SQL queries. While the proposed solutions are a great start, they lack robustness and do not easily generalize: the methods require high quality descriptions of the database table columns, and the most widely used training dataset, WikiSQL, is heavily biased towards using those descriptions as part of the questions. In this work, we propose solutions to both problems: we entirely eliminate the need for column descriptions, by relying solely on their contents, and we augment the WikiSQL dataset by paraphrasing column names to reduce bias. We show that the accuracy of existing methods drops when trained on our augmented, column-agnostic dataset, and that our own method reaches state of the art accuracy, while relying on column contents only.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。