Convert natural language questions to SQL query
How many times have you pulled your hair apart writing a SQL query, now use natural language to convert to appropriate SQL and save your precious hair.
Though this can be used as a standalone package, I highly recommend that you use
streamlit to play with the model interactively, to run it interactively
streamlit run t2s.py
To install this repo clone it then run
git clone https://github.com/yashbonde/text2sql.git cd text2sql/ pip3 install -e . #text2sql
New method of parsing to convert each DB to a graph network, red denotes foreign keys.
Simple trainer file.
Following are the licensing things:
- I am releasing my part of code under MIT License
transformerscode is under Apache License, Version 2.0
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.