arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.13293cs.CL
收藏

汉语SQL语义解析初探

A Pilot Study for Chinese SQL Semantic Parsing

Westlake University(西湖大学);Westlake Institute for Advanced Study(西湖高等研究院)

Qingkai Min, Yuefeng Shi, Yue Zhang

摘要:

语义解析的任务对于对话和问答系统是非常有用的。已经提出了许多数据集来将自然语言文本映射到SQL,其中最近的Spider数据集提供了具有多个表和复杂查询的跨域样本。我们为中文构建了一个Spider数据集,中文目前在这个任务领域是一种资源较少的语言。有趣的研究问题来自语言的独特性,这需要分词,也来自SQL关键字和DB表的列通常用英语编写的事实。我们比较字符和单词为基础的编码器的语义解析器,和不同的嵌入方案。结果表明,基于词的语义分析器是受分割错误和跨语言的词嵌入是有用的文本到SQL。

英文摘要:

The task of semantic parsing is highly useful for dialogue and question answering systems. Many datasets have been proposed to map natural language text into SQL, among which the recent Spider dataset provides cross-domain samples with multiple tables and complex queries. We build a Spider dataset for Chinese, which is currently a low-resource language in this task area. Interesting research questions arise from the uniqueness of the language, which requires word segmentation, and also from the fact that SQL keywords and columns of DB tables are typically written in English. We compare character- and word-based encoders for a semantic parser, and different embedding schemes. Results show that word-based semantic parser is subject to segmentation errors and cross-lingual word embeddings are useful for text-to-SQL.

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

↑