Skip to content

Different demos of semantic parser models, plays related to different state-of-the-art models in converting natural language questions to structured queries such as SQL

License

MysterionRise/nlp-to-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo dedicated to different approaches of transforming natural language questions to structured ones such as SQL

How to run examples

Requirements

Tested on Python 3.8 and Cuda 11.3

  • Install minicoda and following dependencies
    • conda install pytorch torchvision -c pytorch
    • conda install -c conda-forge records
    • conda install babel
    • conda install matplotlib
    • conda install defusedxml
    • conda install tqdm
    • conda install -c conda-forge stanfordcorenlp
    • conda install -c anaconda sqlalchemy
    • conda install -c ericmjl isort
    • conda install -c conda-forge black

Models and data

Download annotated WikiSQL data and the PyTorch-converted pre-trained BERT parameters here and place whole folder under data folder

Run

python3 train.py you will be prompted with topic lookup and then question

About

Different demos of semantic parser models, plays related to different state-of-the-art models in converting natural language questions to structured queries such as SQL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages