text2sql-lgesql
[ACL 2021] This is the project containing source codes and pre-trained models about ACL2021 Long Paper ``LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations".
File Explorer
Download Latest Version (.zip)- sql_asdl_v0.txt
- sql_asdl_v1.txt
- sql_asdl_v2.txt
- parser_base.py
- parser_v0.py
- parser_v1.py
- parser_v2.py
- unparser_base.py
- unparser_v0.py
- unparser_v1.py
- unparser_v2.py
- sql_transition_system.py
- action_info.py
- asdl.py
- asdl_ast.py
- decode_hypothesis.py
- hypothesis.py
- transition_system.py
- onlstm.py
- sql_parser.py
- functions.py
- graph_encoder.py
- graph_input.py
- graph_output.py
- lgesql.py
- rgatsql.py
- model_constructor.py
- model_utils.py
- build_glove_vocab.py
- common_utils.py
- get_tables.py
- graph_utils.py
- parse_raw_json.py
- parse_sql_one.py
- process_dataset.py
- process_graphs.py
- README.md
- results_bert.txt
- results_electra.txt
- results_glove.txt
- run_evaluation.sh
- run_lgesql_glove.sh
- run_lgesql_plm.sh
- run_preprocessing.sh
- run_submission.sh
- text2sql.py
- args.py
- batch.py
- constants.py
- evaluator.py
- example.py
- graph_example.py
- hyperparams.py
- initialization.py
- optimization.py
- vocab.py
- word2vec.py
- .gitignore
- eval.py
- evaluation.py
- LICENSE
- process_sql.py
- README.md
- requirements.txt
- setup.sh
# Installation Guide
1. Get the code
git clone https://github.com/X-LANCE/text2sql-lgesql
Downloads the entire project code from GitHub to your computer.
cd text2sql-lgesql
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Python 3 Python is required to use pip.
pip install torch==1.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
Installs the package published on PyPI directly β no need to clone the source.
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Python
EasyPrerequisites
pip install torch==1.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
Installs the package published on PyPI directly β no need to clone the source.
pip install -r requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
