Create conda env and many other packages upgraded: env-torch1.9.yaml:
conda env create -n env-torch1.9 -f env-torch1.9.yaml
conda activate env-torch1.9
To reproduce our annotation procedure see qdmr2sparql/README.md.
For testing qdmr2sparql translator run qdmr2sparql/test_qdmr2sparql.py
Every experiment has its own config file in text2qdmr/configs/experiments.
python run_text2qdmr.py preprocess experiment_config_file # preprocess the data
python run_text2qdmr.py train experiment_config_file # train a model
python run_text2qdmr.py eval experiment_config_file # evaluate the results
Note that preprocessing and evaluation use execution and take some time. To speed up the evaluation, you can install Virtuoso server (see qdmr2sparql/README_Virtuoso.md).
The dev and test examples of model output are in model_samples/.
Checkpoints of our best models:
| Model | Dev | Test | Config |
|---|---|---|---|
| grappa-aug | 83.6 | 65.2 | text2qdmr/configs/eval-checkpoints/grappa_qdmr_aug.jsonnet |
qdmr2sparql module is based on sparqling-queries-code, the paper SPARQLing Database Queries from Intermediate Question Decompositions was proposed by Irina Saparina and Anton Osokin In proceedings of EMNLP'21.
Text2qdmr module is based on RAT-SQL code, the implementation of ACL'20 paper "RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers" by Wang et al.
Spider dataset was proposed by Yi et al. in EMNLP'18 paper "Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task".
Break dataset was proposed by Wolfson et al. in TACL paper "Break It Down: A Question Understanding Benchmark".
Create conda env and many other packages upgraded: env-torch1.9.yaml:
conda env create -n env-torch1.9 -f env-torch1.9.yaml
conda activate env-torch1.9
To reproduce our annotation procedure see qdmr2sparql/README.md.
For testing qdmr2sparql translator run qdmr2sparql/test_qdmr2sparql.py
Every experiment has its own config file in text2qdmr/configs/experiments.
python run_text2qdmr.py preprocess experiment_config_file # preprocess the data
python run_text2qdmr.py train experiment_config_file # train a model
python run_text2qdmr.py eval experiment_config_file # evaluate the results
Note that preprocessing and evaluation use execution and take some time. To speed up the evaluation, you can install Virtuoso server (see qdmr2sparql/README_Virtuoso.md).
The dev and test examples of model output are in model_samples/.
Checkpoints of our best models:
| Model | Dev | Test | Config |
|---|---|---|---|
| grappa-aug | 83.6 | 65.2 | text2qdmr/configs/eval-checkpoints/grappa_qdmr_aug.jsonnet |
qdmr2sparql module is based on sparqling-queries-code, the paper SPARQLing Database Queries from Intermediate Question Decompositions was proposed by Irina Saparina and Anton Osokin In proceedings of EMNLP'21.
Text2qdmr module is based on RAT-SQL code, the implementation of ACL'20 paper "RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers" by Wang et al.
Spider dataset was proposed by Yi et al. in EMNLP'18 paper "Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task".
Break dataset was proposed by Wolfson et al. in TACL paper "Break It Down: A Question Understanding Benchmark".