QURG: Question Rewriting Guided Context-Dependent Text-to-SQL Semantic Parsing

Linzheng Chai, Dongling Xiao, Jian Yang, Liqun Yang, Qian-Wen Zhang +3 more
5/11/2023
cs.CL

No confident code implementation found for this paper.

Abstract

Context-dependent Text-to-SQL aims to translate multi-turn natural language questions into SQL queries. Despite various methods have exploited context-dependence information implicitly for contextual SQL parsing, there are few attempts to explicitly address the dependencies between current question and question context. This paper presents QURG, a novel Question Rewriting Guided approach to help the models achieve adequate contextual understanding. Specifically, we first train a question rewriting model to complete the current question based on question context, and convert them into a rewriting edit matrix. We further design a two-stream matrix encoder to jointly model the rewriting relations between question and context, and the schema linking relations between natural language and structured schema. Experimental results show that QURG significantly improves the performances on two large-scale context-dependent datasets SParC and CoSQL, especially for hard and long-turn questions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{chai2023qurg,
  title  = {QURG: Question Rewriting Guided Context-Dependent Text-to-SQL Semantic Parsing},
  author = {Linzheng Chai and Dongling Xiao and Jian Yang and Liqun Yang and Qian-Wen Zhang and Yunbo Cao and Zhoujun Li and Zhao Yan},
  year   = {2023},
  eprint = {2305.06655},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.06655v2}
}

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

Discussion