论文标题
Uni-Parser:在知识库和数据库上回答问题的统一语义解析器
Uni-Parser: Unified Semantic Parser for Question Answering on Knowledge Base and Database
论文作者
论文摘要
将自然语言问题解析为可执行的逻辑形式是一种有用且可解释的方法,可以对结构化数据(例如知识库(KB)或数据库(DB))进行问题回答。但是,关于语义解析的现有方法不能适应两种方式,因为它们遭受了逻辑形式候选者的指数增长,并且几乎无法概括为看不见的数据。在这项工作中,我们提出了Uni-Parser,这是KB和DB上的统一语义解析器(QA)。我们将原始(Kb中的关系和实体以及db中的列名和单元格值)介绍为我们的框架中的重要元素。原语的数量随KB和DB中检索的关系数量线性增长,从而阻止了我们处理指数逻辑形式的候选者。我们利用发电机来通过更改和组成具有不同操作的顶式原始图(例如选择,位置,计数)来预测最终的逻辑形式。通过对比的原始排名足够修剪的搜索空间,生成器有权捕获原始的组成,从而增强其泛化能力。我们更有效地在多个KB和DB QA基准上获得了竞争成果,尤其是在组成和零击设置中。
Parsing natural language questions into executable logical forms is a useful and interpretable way to perform question answering on structured data such as knowledge bases (KB) or databases (DB). However, existing approaches on semantic parsing cannot adapt to both modalities, as they suffer from the exponential growth of the logical form candidates and can hardly generalize to unseen data. In this work, we propose Uni-Parser, a unified semantic parser for question answering (QA) on both KB and DB. We introduce the primitive (relation and entity in KB, and table name, column name and cell value in DB) as an essential element in our framework. The number of primitives grows linearly with the number of retrieved relations in KB and DB, preventing us from dealing with exponential logic form candidates. We leverage the generator to predict final logical forms by altering and composing topranked primitives with different operations (e.g. select, where, count). With sufficiently pruned search space by a contrastive primitive ranker, the generator is empowered to capture the composition of primitives enhancing its generalization ability. We achieve competitive results on multiple KB and DB QA benchmarks more efficiently, especially in the compositional and zero-shot settings.