Graph Enhanced Cross-Domain Text-to-SQL Generation
Siyu Huo, Tengfei Ma, Jie Chen, Maria Chang, Lingfei Wu, Michael Witbrock
Abstract
Semantic parsing is a fundamental problem in natural language understanding, as it involves the mapping of natural language to structured forms such as executable queries or logic-like knowledge representations. Existing deep learning approaches for semantic parsing have shown promise on a variety of benchmark data sets, particularly on text-to-SQL parsing. However, most text-to-SQL parsers do not generalize to unseen data sets in different domains. In this paper, we propose a new cross-domain learning scheme to perform text-to-SQL translation and demonstrate its use on Spider, a large-scale cross-domain text-to-SQL data set. We improve upon a state-of-the-art Spider model, SyntaxSQLNet, by constructing a graph of column names for all databases and using graph neural networks to compute their embeddings. The resulting embeddings offer better cross-domain representations and SQL queries, as evidenced by substantial improvement on the Spider data set compared to SyntaxSQLNet.- Anthology ID:
- D19-5319
- Volume:
- Proceedings of the Thirteenth Workshop on Graph-Based Methods for Natural Language Processing (TextGraphs-13)
- Month:
- November
- Year:
- 2019
- Address:
- Hong Kong
- Editors:
- Dmitry Ustalov, Swapna Somasundaran, Peter Jansen, Goran Glavaš, Martin Riedl, Mihai Surdeanu, Michalis Vazirgiannis
- Venue:
- TextGraphs
- SIG:
- Publisher:
- Association for Computational Linguistics
- Note:
- Pages:
- 159–163
- Language:
- URL:
- https://aclanthology.org/D19-5319
- DOI:
- 10.18653/v1/D19-5319
- Cite (ACL):
- Siyu Huo, Tengfei Ma, Jie Chen, Maria Chang, Lingfei Wu, and Michael Witbrock. 2019. Graph Enhanced Cross-Domain Text-to-SQL Generation. In Proceedings of the Thirteenth Workshop on Graph-Based Methods for Natural Language Processing (TextGraphs-13), pages 159–163, Hong Kong. Association for Computational Linguistics.
- Cite (Informal):
- Graph Enhanced Cross-Domain Text-to-SQL Generation (Huo et al., TextGraphs 2019)
- PDF:
- https://preview.aclanthology.org/nschneid-patch-1/D19-5319.pdf