arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.03546cs.CLcs.AI
收藏

mRAT-SQL + GAP:一个葡萄牙语文本到SQL的转换器Transformer

mRAT-SQL+GAP:A Portuguese Text-to-SQL Transformer

Universidade de São Paulo(圣保罗大学)

Marcelo Archanjo José, Fabio Gagliardi Cozman

摘要:

自然语言问题到SQL查询的转换已经吸引了越来越多的关注,特别是与Transformers和类似的语言模型相关的。大量的技术都是面向英语的;在这项工作中,我们因此调查了在葡萄牙语中给出输入问题时翻译为SQL的情况。为此,我们适当调整了最先进的工具和资源。我们通过依赖多语言BART模型(我们报告了使用其他语言模型的测试)改变了RAT-SQL+GAP系统,并生成了Spider数据集的翻译版本。我们的实验揭示了非英语语言作为目标时出现的有趣现象;特别是,即使需要单个目标语言,也最好用原始和翻译的训练数据集一起进行训练。这个多语言BART模型用双倍大小的训练数据集(英语和葡萄牙语)进行了微调,达到了基线的83%,为葡萄牙语测试数据集做出了推断。这项调查可以帮助其他研究人员用不同于英语的语言得出机器学习的结果。我们的多语言版本的RAT-SQL+GAP和数据是可用的,开源的mRAT-SQL+GAP在:https://github.com/C4AI/gap-text2sql

英文摘要:

The translation of natural language questions to SQL queries has attracted growing attention, in particular in connection with transformers and similar language models. A large number of techniques are geared towards the English language; in this work, we thus investigated translation to SQL when input questions are given in the Portuguese language. To do so, we properly adapted state-of-the-art tools and resources. We changed the RAT-SQL+GAP system by relying on a multilingual BART model (we report tests with other language models), and we produced a translated version of the Spider dataset. Our experiments expose interesting phenomena that arise when non-English languages are targeted; in particular, it is better to train with original and translated training datasets together, even if a single target language is desired. This multilingual BART model fine-tuned with a double-size training dataset (English and Portuguese) achieved 83% of the baseline, making inferences for the Portuguese test dataset. This investigation can help other researchers to produce results in Machine Learning in a language different from English. Our multilingual ready version of RAT-SQL+GAP and the data are available, open-sourced as mRAT-SQL+GAP at: https://github.com/C4AI/gap-text2sql

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

↑