A Copy Mechanism for Handling Knowledge Base Elements in SPARQL Neural Machine Translation

Rose Hirigoyen, Amal Zouaq, Samuel Reyd
11/18/2022
cs.CLcs.LG

Official code: Lama-West/SPARQL_Query_Generation_aacl-ijcnl2022 (6 stars, Jupyter Notebook, AGPL-3.0, last commit 2022-12-02).

Abstract

Neural Machine Translation (NMT) models from English to SPARQL are a promising development for SPARQL query generation. However, current architectures are unable to integrate the knowledge base (KB) schema and handle questions on knowledge resources, classes, and properties unseen during training, rendering them unusable outside the scope of topics covered in the training set.

Show full abstract

Inspired by the performance gains in natural language processing tasks, we propose to integrate a copy mechanism for neural SPARQL query generation as a way to tackle this issue. We illustrate our proposal by adding a copy layer and a dynamic knowledge base vocabulary to two Seq2Seq architectures (CNNs and Transformers). This layer makes the models copy KB elements directly from the questions, instead of generating them. We evaluate our approach on state-of-the-art datasets, including datasets referencing unknown KB elements and measure the accuracy of the copy-augmented architectures. Our results show a considerable increase in performance on all datasets compared to non-copy architectures.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0
62Jupyter Notebook, PythonSep 28, 20224 years agoAGPL-3.0

Similar Papers

Cite this paper

@article{hirigoyen2022copy,
  title  = {A Copy Mechanism for Handling Knowledge Base Elements in SPARQL Neural Machine Translation},
  author = {Rose Hirigoyen and Amal Zouaq and Samuel Reyd},
  year   = {2022},
  eprint = {2211.10271},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.10271}
}

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/2211.10271.svg)](https://codeofpaper.com/paper/2211.10271)

Discussion