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

Ar-Spider:阿拉伯语文本到SQL

Ar-Spider: Text-to-SQL in Arabic

University of Central Florida(中佛罗里达大学)

Saleh Almohaimeed, Saad Almohaimeed, Mansour Al Ghanim, Liqiang Wang

AI总结:

本文提出首个阿拉伯语跨领域文本到SQL数据集Ar-Spider,并针对语言与SQL结构挑战提出上下文相似关系方法,在S2SQL和LGESQL上分别提升1.52%和1.06%,缩小与英语的性能差距。

摘要:

在自然语言处理(NLP)中,最重要的任务之一是文本到SQL语义解析,其重点在于使用户能够以更自然的方式与数据库交互。近年来,文本到SQL取得了显著进展,但大多数工作以英语为中心。在本文中,我们介绍了Ar-Spider 1,这是第一个阿拉伯语跨领域文本到SQL数据集。由于该语言的独特性,我们遇到了两大挑战,即模式语言挑战和SQL结构挑战。为了解决这些问题并进行实验,我们采用了两个基线模型LGESQL [4]和S2SQL [12],并分别用两个跨语言模型对它们进行测试,以缓解模式语言和SQL结构链接挑战的影响。这些基线在我们的阿拉伯语文本到SQL数据集Ar-Spider上展示了不错的单语言性能,S2SQL达到62.48%,LGESQL达到65.57%,仅比基线在英语数据集上训练时取得的最高结果低8.79%。为了在阿拉伯语文本到SQL上取得更好的性能,我们提出了上下文相似关系(CSR)方法,使整体性能显著提升,S2SQL约提升1.52%,LGESQL约提升1.06%,并将阿拉伯语与英语之间的差距缩小到7.73%。

英文摘要:

In Natural Language Processing (NLP), one of the most important tasks is text-to-SQL semantic parsing, which focuses on enabling users to interact with the database in a more natural manner. In recent years, text-to-SQL has made significant progress, but most were English-centric. In this paper, we introduce Ar-Spider 1, the first Arabic cross-domain text-to-SQL dataset. Due to the unique nature of the language, two major challenges have been encountered, namely schema linguistic and SQL structural challenges. In order to handle these issues and conduct the experiments, we adopt two baseline models LGESQL [4] and S2SQL [12], both of which are tested with two cross-lingual models to alleviate the effects of schema linguistic and SQL structure linking challenges. The baselines demonstrate decent single-language performance on our Arabic text-to-SQL dataset, Ar-Spider, achieving 62.48% for S2SQL and 65.57% for LGESQL, only 8.79% below the highest results achieved by the baselines when trained in English dataset. To achieve better performance on Arabic text-to-SQL, we propose the context similarity relationship (CSR) approach, which results in a significant increase in the overall performance of about 1.52% for S2SQL and 1.06% for LGESQL and closes the gap between Arabic and English languages to 7.73%.

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

↑