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

数据的自然语言接口

Natural Language Interfaces to Data

Abdul Quamar, Vasilis Efthymiou, Chuan Lei, Fatma Özcan

摘要:

自然语言理解和自然语言处理的最新进展使人们对数据的自然语言接口重新产生了兴趣,它为非技术用户访问和查询数据提供了一种简单的机制。虽然早期的系统从关键字搜索演变而来,并专注于简单的事实查询,但输入句子以及生成的SQL查询的复杂性都随着时间的推移而演变。最近,人们也非常关注使用会话界面进行数据分析,使非技术用户能够快速洞察数据。在自然语言查询(NLQ)中存在三个主要挑战:(1)识别用户话语中涉及的实体,(2)在底层数据源上以有意义的方式连接不同的实体以解释用户意图,以及(3)生成SQL或SPARQL形式的结构化查询。有两种主要的方法来解释用户的NLQ。基于规则的系统利用语义索引、本体和KG来识别查询中的实体,理解这些实体之间的预期关系,并利用语法来生成目标查询。随着基于深度学习(DL)的语言模型的进步,已经有许多文本到SQL的方法尝试使用DL模型来整体地解释查询。同时利用基于规则的技术和DL模型的混合方法也通过结合两种方法的优势而出现。会话接口是一次性NLQ的下一个自然步骤,它利用多轮会话之间的查询上下文来消除歧义。在这篇文章中,我们回顾了自然语言接口中使用的背景技术,并调查了NLQ的不同方法。我们还描述了用于数据分析的对话界面,并讨论了用于NLQ研究和评估的几个基准。

英文摘要:

Recent advances in NLU and NLP have resulted in renewed interest in natural language interfaces to data, which provide an easy mechanism for non-technical users to access and query the data. While early systems evolved from keyword search and focused on simple factual queries, the complexity of both the input sentences as well as the generated SQL queries has evolved over time. More recently, there has also been a lot of focus on using conversational interfaces for data analytics, empowering a line of non-technical users with quick insights into the data. There are three main challenges in natural language querying (NLQ): (1) identifying the entities involved in the user utterance, (2) connecting the different entities in a meaningful way over the underlying data source to interpret user intents, and (3) generating a structured query in the form of SQL or SPARQL. There are two main approaches for interpreting a user's NLQ. Rule-based systems make use of semantic indices, ontologies, and KGs to identify the entities in the query, understand the intended relationships between those entities, and utilize grammars to generate the target queries. With the advances in deep learning (DL)-based language models, there have been many text-to-SQL approaches that try to interpret the query holistically using DL models. Hybrid approaches that utilize both rule-based techniques as well as DL models are also emerging by combining the strengths of both approaches. Conversational interfaces are the next natural step to one-shot NLQ by exploiting query context between multiple turns of conversation for disambiguation. In this article, we review the background technologies that are used in natural language interfaces, and survey the different approaches to NLQ. We also describe conversational interfaces for data analytics and discuss several benchmarks used for NLQ research and evaluation.

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

↑