RECPARSER: A Recursive Semantic Parsing Framework for Text-to-SQL Task
Yu Zeng, Yan Gao, Jiaqi Guo, Bei Chen, Qian Liu, Jian-Guang Lou, Fei Teng, Dongmei Zhang
Abstract
Neural semantic parsers usually fail to parse long and complicated utterances into nested SQL queries, due to the large search space. In this paper, we propose a novel recursive semantic parsing framework called RECPARSER to generate the nested SQL query layer-by-layer. It decomposes the complicated nested SQL query generation problem into several progressive non-nested SQL query generation problems. Furthermore, we propose a novel Question Decomposer module to explicitly encourage RECPARSER to focus on different components of an utterance when predicting SQL queries of different layers. Experiments on the Spider dataset show that our approach is more effective compared to the previous works at predicting the nested SQL queries. In addition, we achieve an overall accuracy that is comparable with state-of-the-art approaches.
BibTeX
@inproceedings{ijcai2020p504,
title = {RECPARSER: A Recursive Semantic Parsing Framework for Text-to-SQL Task},
author = {Zeng, Yu and Gao, Yan and Guo, Jiaqi and Chen, Bei and Liu, Qian and Lou, Jian-Guang and Teng, Fei and Zhang, Dongmei},
booktitle = {Proceedings of the Twenty-Ninth International Joint Conference on
Artificial Intelligence, {IJCAI-20}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Christian Bessiere},
pages = {3644--3650},
year = {2020},
month = {7},
note = {Main track},
doi = {10.24963/ijcai.2020/504},
url = {https://doi.org/10.24963/ijcai.2020/504},
}