SPARQA: Skeleton-based Semantic Parsing for Complex Questions over Knowledge Bases

Yawei Sun, Lingling Zhang, Gong Cheng, Yuzhong Qu
3/31/2020
cs.CLcs.AI

Official code: nju-websoft/SPARQA (67 stars, Python, MIT, last commit 2023-05-22).

Abstract

Semantic parsing transforms a natural language question into a formal query over a knowledge base. Many existing methods rely on syntactic parsing like dependencies.

Show full abstract

However, the accuracy of producing such expressive formalisms is not satisfying on long complex questions. In this paper, we propose a novel skeleton grammar to represent the high-level structure of a complex question. This dedicated coarse-grained formalism with a BERT-based parsing algorithm helps to improve the accuracy of the downstream fine-grained semantic parsing. Besides, to align the structure of a question with the structure of a knowledge base, our multi-strategy method combines sentence-level and word-level semantics. Our approach shows promising performance on several datasets.

View on arXivView PDF

Code Implementations(1)

nju-websoft/SPARQAOfficial100%
MIT

SPARQA: Skeleton-based Semantic Parsing for Complex Questions over Knowledge Bases (AAAI 2020)

679PythonNov 17, 20193 years agoMIT
kbqaqasemantic-parsing

Similar Papers

Cite this paper

@article{sun2020sparqa,
  title  = {SPARQA: Skeleton-based Semantic Parsing for Complex Questions over Knowledge Bases},
  author = {Yawei Sun and Lingling Zhang and Gong Cheng and Yuzhong Qu},
  year   = {2020},
  eprint = {2003.13956},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.13956}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2003.13956.svg)](https://codeofpaper.com/paper/2003.13956)

Discussion