Semantic parsing-based methods for knowledge base question answering have achieved leading performance, but rely on high-quality training data of question-SPARQL query pairs, which requires substantial manual effort. In contrast, question-answer pairs are much easier to obtain. In this paper, we propose a novel task, namely SPARQL Query Annotating (SQA), to automatically construct queries with given question-answer pairs. We propose a novel metric test suite score for the evaluation of this task, and collect a dataset ReQuMA to evaluate this task’s facilitation on manual annotation. We also present QuAD, a Question-Answer Driven method for this task. Our experiments show that the task effectively eases manual annotation, and helps semantic parsing-based KBQA methods to maintain competitive performance when using the constructed queries from QuAD as training data. Analysis shows our test suite score metric effectively reflects the quality of constructed queries. Meanwhile, the substantial performance of QuAD demonstrates its effectiveness as a dedicated SQA method. Our code is available at https://github.com/nju-websoft/SQA .

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

SQA: SPARQL Query Annotating with Question-Answer Pairs

  • Yuheng Bao,
  • Wenhao Zhou,
  • Xuan Wu,
  • Wei Hu,
  • Dingkun Xu,
  • Mingjia Qian,
  • Yuzhong Qu

摘要

Semantic parsing-based methods for knowledge base question answering have achieved leading performance, but rely on high-quality training data of question-SPARQL query pairs, which requires substantial manual effort. In contrast, question-answer pairs are much easier to obtain. In this paper, we propose a novel task, namely SPARQL Query Annotating (SQA), to automatically construct queries with given question-answer pairs. We propose a novel metric test suite score for the evaluation of this task, and collect a dataset ReQuMA to evaluate this task’s facilitation on manual annotation. We also present QuAD, a Question-Answer Driven method for this task. Our experiments show that the task effectively eases manual annotation, and helps semantic parsing-based KBQA methods to maintain competitive performance when using the constructed queries from QuAD as training data. Analysis shows our test suite score metric effectively reflects the quality of constructed queries. Meanwhile, the substantial performance of QuAD demonstrates its effectiveness as a dedicated SQA method. Our code is available at https://github.com/nju-websoft/SQA .