tiwarikajal / Seq2SQL--Natural-Language-sentences-to-SQL-Queries

68 stars 22 forks source link

Natural Language to SQL

This project is an implementation of the Seq2SQL model described in https://arxiv.org/pdf/1709.00103.pdf

Here we have also implemented the baseline sequence to sequence model

Setup Instructions

Folder Structure

Important Files

The entry point to the project is the main.py file. From here it is possible to control which model(s) we want to run. The preprocess.py is another essential file as it results in the generation of the tokenized dataset. Altering the tokenizing logic could significantly impact the results. constants.py contains multiple parameters used by the target model like batch size, learning rate, number of epochs, etc.

Upon completion of the run, the code will generate loss graphs and store the results of the target model into a text file in the root directory of the project