Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrianbzg/sqlformer
Code for "SQLformer: Deep Auto-Regressive Query Graph Generation for Text-to-SQL Translation"
https://github.com/adrianbzg/sqlformer
Last synced: 8 days ago
JSON representation
Code for "SQLformer: Deep Auto-Regressive Query Graph Generation for Text-to-SQL Translation"
- Host: GitHub
- URL: https://github.com/adrianbzg/sqlformer
- Owner: AdrianBZG
- Created: 2023-09-03T23:24:20.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-14T23:09:40.000Z (11 months ago)
- Last Synced: 2024-05-21T02:14:11.676Z (6 months ago)
- Language: Python
- Homepage: https://arxiv.org/abs/2310.18376
- Size: 102 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQLformer
Official implementation of "SQLformer: Deep Auto-Regressive Query Graph Generation for Text-to-SQL Translation"
# Overview
SQLformer is a novel Transformer architecture specifically crafted to perform text-to-SQL translation tasks. The model predicts SQL queries as abstract syntax trees (ASTs) in an autoregressive way, incorporating structural inductive bias in the encoder and decoder layers. This bias, guided by database table and column selection, aids the decoder in generating SQL query ASTs represented as graphs in a Breadth-First Search canonical order. Comprehensive experiments illustrate the effectiveness of SQLformer on the Spider benchmark.
# Graphical summary of the proposed architecture
![SQLformer](https://i.gyazo.com/e869c8f3e81876b6daa86caad62b19f3.png)
# License
SQLformer is released under the [MIT](LICENSE).
# Note: Repository in progress
We are still polishing up the code and will submit the updated version soon. Thank you for your interest in our work. For any question pleae contact Adrián Bazaga (ar989 (at) cam.ac.uk)
# Citation
If you use SQLformer in your work, we would appreciate using the following citation:
```
@misc{bazaga2023sqlformer,
title={SQLformer: Deep Auto-Regressive Query Graph Generation for Text-to-SQL Translation},
author={Adrián Bazaga and Pietro Liò and Gos Micklem},
year={2023},
eprint={2310.18376},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
```