DBTagger: Multi-Task Learning for Keyword Mapping in NLIDBs Using Bi-Directional Recurrent Neural Networks

Arif Usta, Akifhan Karakayali, Özgür Ulusoy
1/11/2021
cs.DBcs.CL

Official code: arifusta/DBTagger (5 stars, Python, MIT, last commit 2021-04-12).

Abstract

Translating Natural Language Queries (NLQs) to Structured Query Language (SQL) in interfaces deployed in relational databases is a challenging task, which has been widely studied in database community recently. Conventional rule based systems utilize series of solutions as a pipeline to deal with each step of this task, namely stop word filtering, tokenization, stemming/lemmatization, parsing, tagging, and translation.

Show full abstract

Recent works have mostly focused on the translation step overlooking the earlier steps by using ad-hoc solutions. In the pipeline, one of the most critical and challenging problems is keyword mapping; constructing a mapping between tokens in the query and relational database elements (tables, attributes, values, etc.). We define the keyword mapping problem as a sequence tagging problem, and propose a novel deep learning based supervised approach that utilizes POS tags of NLQs. Our proposed approach, called \textit{DBTagger} (DataBase Tagger), is an end-to-end and schema independent solution, which makes it practical for various relational databases. We evaluate our approach on eight different datasets, and report new state-of-the-art accuracy results, $92.4\%$ on the average. Our results also indicate that DBTagger is faster than its counterparts up to $10000$ times and scalable for bigger databases.

View on arXivView PDF

Code Implementations(1)

arifusta/DBTaggerOfficial100%
MIT

DBTagger: Keyword mapper for Natural Language Interface in Databases using Deep Learning, PVLDB'21.

51Python, Jupyter NotebookJan 11, 20215 years agoMIT
multi-task-learningnatural-language-interfacenlidbrelational-databasessequence-labeling

Similar Papers

Cite this paper

@article{usta2021dbtagger,
  title  = {DBTagger: Multi-Task Learning for Keyword Mapping in NLIDBs Using Bi-Directional Recurrent Neural Networks},
  author = {Arif Usta and Akifhan Karakayali and Özgür Ulusoy},
  year   = {2021},
  eprint = {2101.04226},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.04226}
}

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

Discussion