Skip to content

hyukkyukang/text2SQL

Repository files navigation

text2SQL

codecov

Environment Setup

Install requirements with the following command

pip install -r requirements.txt

SQL Parser

We support parsing SQL string into abstract syntax tree (AST).

We first use postgreSQL parser to parse SQL string into AST. Then, we convert it into our own AST defined with ASDL.

To use the parser, run the following command:

python src/parser/parser.py --sql [SQL STRING] --asdl_path [ASDL FILE PATH]

Note that a ASDL file defining the AST is required. An Example can be found in src/grammar/ratsql_extended.asdl.

Text-to-SQL

About

Text-to-SQL Translation Model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages