Skip to content
hyukkyukangPublic

About

Text-to-SQL Translation Model

Resources

Stars

54 stars

Watchers

1 watching

Forks

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

Stars

54 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages