├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── SUPPORT.md ├── data ├── configs │ ├── config.calflow.seq2seq.bert.jsonnet │ └── config.calflow.structured.bert.jsonnet └── env.yml ├── models ├── __init__.py ├── analyze_attention.py ├── average_metrics.py ├── beam_search.py ├── callbacks.py ├── categorical_metric.py ├── copynet.py ├── decompositional_parser.py ├── decompositional_parser_reader.py ├── derivation_field.py ├── modules │ ├── __init__.py │ ├── bilinear_attention.py │ ├── coverage_attention.py │ └── oracle_alignment_attention.py ├── oracle_metric.py ├── parser.py ├── seq2seq_parser_reader.py ├── seq2seq_with_copy.py ├── seq2seq_with_copy_predictor.py ├── sequence_metric.py ├── span_masking_attention.py ├── stacked_lstm_cell.py ├── stacked_lstm_encoder.py ├── structured_metric.py └── utils.py ├── reg_attn_transformers ├── README.md ├── __init__.py ├── attention_regularized_seq2seq.py ├── callbacks.py ├── eval_pl_model.py ├── finetune.py ├── finetune_trainer.py ├── lightning_base.py ├── requirements.txt ├── rouge_cli.py ├── run_distributed_eval.py ├── run_eval.py ├── run_eval_search.py ├── sentence_splitter.py ├── seq2seq_trainer.py ├── utils.py └── xla_spawn.py ├── text2sql_experiments ├── LICENSE ├── README.md ├── data │ └── sql data │ │ ├── atis-schema.csv │ │ └── atis │ │ ├── new_question_split │ │ ├── aligned_final_dev.json │ │ ├── aligned_train.json │ │ ├── aligned_train.parse_comp_heuristics_false_analyze_nested_false.consecutive_utt.jsonl │ │ ├── dev.json │ │ ├── exclude.json │ │ ├── final_dev.json │ │ ├── final_test.json │ │ ├── test.json │ │ └── train.json │ │ └── schema_full_split │ │ ├── aligned_final_dev.json │ │ ├── aligned_train.json │ │ ├── aligned_train.parse_comp_heuristics_false_analyze_nested_false.consecutive_utt.jsonl │ │ ├── dev.json │ │ ├── final_dev.json │ │ ├── final_test.json │ │ ├── test.json │ │ └── train.json ├── drop_code │ └── domain_languages │ │ └── drop_language.py ├── requirements.txt ├── scripts │ ├── create_commands.py │ ├── gather_eval_results.py │ └── misc │ │ ├── alignment_utils.py │ │ └── cky_spans.py ├── text2sql │ ├── __init__.py │ ├── data │ │ ├── __init__.py │ │ ├── dataset_readers │ │ │ ├── __init__.py │ │ │ ├── dataset_utils │ │ │ │ ├── span_utils.py │ │ │ │ └── text2sql_utils.py │ │ │ ├── grammar_based_attn_sup.py │ │ │ ├── grammar_based_spans.py │ │ │ ├── grammar_based_text2sql_v3.py │ │ │ ├── no_grammar_based_text2sql.py │ │ │ ├── seq2seq_attn_sup.py │ │ │ ├── seq2seq_spans.py │ │ │ ├── text2sql_copynet_reader.py │ │ │ ├── text2sql_seq2seq_attention_regularization_reader.py │ │ │ └── text2sql_seq2seq_reader.py │ │ ├── preprocess │ │ │ ├── complete_vars_dict.py │ │ │ ├── remove_join.py │ │ │ ├── sql_templates.py │ │ │ └── text2sql_canonicalizer.py │ │ └── tokenizers │ │ │ ├── __init__.py │ │ │ ├── findollak_sql_tokeniser.py │ │ │ └── whitespace_tokenizer.py │ ├── models │ │ ├── __init__.py │ │ ├── grmr_attn_sup.py │ │ ├── grmr_over_spans.py │ │ ├── seq2seq.py │ │ ├── seq2seq_attn_sup.py │ │ ├── seq2seq_coverage.py │ │ ├── text2sql_copynet.py │ │ └── text2sql_parser.py │ ├── modules │ │ ├── __init__.py │ │ └── attention │ │ │ ├── __init__.py │ │ │ ├── bilinear_attention.py │ │ │ ├── coverage_attention.py │ │ │ └── coverage_attention_v2.py │ ├── predictors │ │ ├── __init__.py │ │ └── text2sql_grammar_predictor.py │ ├── semparse │ │ ├── __init__.py │ │ ├── contexts │ │ │ ├── __init__.py │ │ │ ├── draft.py │ │ │ ├── text2sql_nogrammar_table_context.py │ │ │ ├── text2sql_table_context_v2.py │ │ │ └── text2sql_table_context_v3.py │ │ └── worlds │ │ │ ├── __init__.py │ │ │ ├── grmr_attn_sup_world.py │ │ │ ├── text2sql_nogrammar_world.py │ │ │ └── text2sql_world_v3.py │ ├── state_machines │ │ ├── __init__.py │ │ ├── states │ │ │ ├── __init__.py │ │ │ ├── grammar_based_state.py │ │ │ └── sql_statelet.py │ │ ├── trainers │ │ │ ├── __init__.py │ │ │ ├── maximum_marginal_likelihood.py │ │ │ └── maximum_marginal_likelihood_attn_sup.py │ │ └── transition_function │ │ │ ├── __init__.py │ │ │ ├── basic_transition_function.py │ │ │ └── coverage_transition_function.py │ └── training │ │ ├── __init__.py │ │ └── metrics │ │ ├── __init__.py │ │ ├── bleu.py │ │ ├── coverage_loss.py │ │ ├── sql_global_templ_acc.py │ │ ├── sql_kb_acc.py │ │ ├── sql_validity_metric.py │ │ └── token_sequence_accuracy.py └── training_config │ ├── best_params.xlsx │ ├── iid_adv_grammar_bert_config.jsonnet │ ├── iid_ati_attnsupgrammar_glove_config.jsonnet │ ├── iid_ati_attnsupseq2seq_glove_config.jsonnet │ ├── iid_ati_covrgseq2seq_attn_reg_elmo_config.jsonnet │ ├── iid_ati_covrgseq2seq_glove_config.jsonnet │ ├── iid_ati_grammar_elmo_config.jsonnet │ ├── iid_ati_grammar_glove_config.jsonnet │ ├── iid_ati_seq2seq_bert_config.jsonnet │ ├── iid_ati_seq2seq_elmo_config.jsonnet │ ├── iid_ati_seq2seq_glove_config.jsonnet │ ├── iid_ati_spansseq2seq_glove_config.jsonnet │ └── iid_geo_attnsupcovrgseq2seq_glove_config.jsonnet └── utils ├── calflow ├── __init__.py ├── experiment_configs.py ├── extract_span_alignment_dataset.py ├── preprocess_dataset.py ├── run_experiments.py └── train_giza_alignment.py ├── cfq ├── __init__.py ├── cfq_utils │ ├── __init__.py │ └── preprocess.py ├── extract_span_alignment_dataset.py ├── rewrite_sparql.py ├── rewrite_sparql_test.py ├── sparql_parser.py └── train_giza_alignment.py ├── sequence_utils.py ├── sexp_utils.py └── sql ├── __init__.py ├── extract_span_alignment_dataset.py ├── preprocess_spider.py ├── sql_utils ├── __init__.py ├── encoder_input_canonicalizer.py └── text2sql_utils.py ├── string_util.py └── train_giza_alignment.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/SECURITY.md -------------------------------------------------------------------------------- /SUPPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/SUPPORT.md -------------------------------------------------------------------------------- /data/configs/config.calflow.seq2seq.bert.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/data/configs/config.calflow.seq2seq.bert.jsonnet -------------------------------------------------------------------------------- /data/configs/config.calflow.structured.bert.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/data/configs/config.calflow.structured.bert.jsonnet -------------------------------------------------------------------------------- /data/env.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/data/env.yml -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/analyze_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/analyze_attention.py -------------------------------------------------------------------------------- /models/average_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/average_metrics.py -------------------------------------------------------------------------------- /models/beam_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/beam_search.py -------------------------------------------------------------------------------- /models/callbacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/callbacks.py -------------------------------------------------------------------------------- /models/categorical_metric.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/categorical_metric.py -------------------------------------------------------------------------------- /models/copynet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/copynet.py -------------------------------------------------------------------------------- /models/decompositional_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/decompositional_parser.py -------------------------------------------------------------------------------- /models/decompositional_parser_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/decompositional_parser_reader.py -------------------------------------------------------------------------------- /models/derivation_field.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/derivation_field.py -------------------------------------------------------------------------------- /models/modules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/modules/bilinear_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/modules/bilinear_attention.py -------------------------------------------------------------------------------- /models/modules/coverage_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/modules/coverage_attention.py -------------------------------------------------------------------------------- /models/modules/oracle_alignment_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/modules/oracle_alignment_attention.py -------------------------------------------------------------------------------- /models/oracle_metric.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/oracle_metric.py -------------------------------------------------------------------------------- /models/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/parser.py -------------------------------------------------------------------------------- /models/seq2seq_parser_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/seq2seq_parser_reader.py -------------------------------------------------------------------------------- /models/seq2seq_with_copy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/seq2seq_with_copy.py -------------------------------------------------------------------------------- /models/seq2seq_with_copy_predictor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/seq2seq_with_copy_predictor.py -------------------------------------------------------------------------------- /models/sequence_metric.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/sequence_metric.py -------------------------------------------------------------------------------- /models/span_masking_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/span_masking_attention.py -------------------------------------------------------------------------------- /models/stacked_lstm_cell.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/stacked_lstm_cell.py -------------------------------------------------------------------------------- /models/stacked_lstm_encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/stacked_lstm_encoder.py -------------------------------------------------------------------------------- /models/structured_metric.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/structured_metric.py -------------------------------------------------------------------------------- /models/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/models/utils.py -------------------------------------------------------------------------------- /reg_attn_transformers/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/README.md -------------------------------------------------------------------------------- /reg_attn_transformers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/__init__.py -------------------------------------------------------------------------------- /reg_attn_transformers/attention_regularized_seq2seq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/attention_regularized_seq2seq.py -------------------------------------------------------------------------------- /reg_attn_transformers/callbacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/callbacks.py -------------------------------------------------------------------------------- /reg_attn_transformers/eval_pl_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/eval_pl_model.py -------------------------------------------------------------------------------- /reg_attn_transformers/finetune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/finetune.py -------------------------------------------------------------------------------- /reg_attn_transformers/finetune_trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/finetune_trainer.py -------------------------------------------------------------------------------- /reg_attn_transformers/lightning_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/lightning_base.py -------------------------------------------------------------------------------- /reg_attn_transformers/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/requirements.txt -------------------------------------------------------------------------------- /reg_attn_transformers/rouge_cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/rouge_cli.py -------------------------------------------------------------------------------- /reg_attn_transformers/run_distributed_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/run_distributed_eval.py -------------------------------------------------------------------------------- /reg_attn_transformers/run_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/run_eval.py -------------------------------------------------------------------------------- /reg_attn_transformers/run_eval_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/run_eval_search.py -------------------------------------------------------------------------------- /reg_attn_transformers/sentence_splitter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/sentence_splitter.py -------------------------------------------------------------------------------- /reg_attn_transformers/seq2seq_trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/seq2seq_trainer.py -------------------------------------------------------------------------------- /reg_attn_transformers/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/utils.py -------------------------------------------------------------------------------- /reg_attn_transformers/xla_spawn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/reg_attn_transformers/xla_spawn.py -------------------------------------------------------------------------------- /text2sql_experiments/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/LICENSE -------------------------------------------------------------------------------- /text2sql_experiments/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/README.md -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis-schema.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis-schema.csv -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/new_question_split/aligned_final_dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/new_question_split/aligned_final_dev.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/new_question_split/aligned_train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/new_question_split/aligned_train.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/new_question_split/aligned_train.parse_comp_heuristics_false_analyze_nested_false.consecutive_utt.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/new_question_split/aligned_train.parse_comp_heuristics_false_analyze_nested_false.consecutive_utt.jsonl -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/new_question_split/dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/new_question_split/dev.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/new_question_split/exclude.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/new_question_split/exclude.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/new_question_split/final_dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/new_question_split/final_dev.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/new_question_split/final_test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/new_question_split/final_test.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/new_question_split/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/new_question_split/test.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/new_question_split/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/new_question_split/train.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/schema_full_split/aligned_final_dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/schema_full_split/aligned_final_dev.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/schema_full_split/aligned_train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/schema_full_split/aligned_train.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/schema_full_split/aligned_train.parse_comp_heuristics_false_analyze_nested_false.consecutive_utt.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/schema_full_split/aligned_train.parse_comp_heuristics_false_analyze_nested_false.consecutive_utt.jsonl -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/schema_full_split/dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/schema_full_split/dev.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/schema_full_split/final_dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/schema_full_split/final_dev.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/schema_full_split/final_test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/schema_full_split/final_test.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/schema_full_split/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/schema_full_split/test.json -------------------------------------------------------------------------------- /text2sql_experiments/data/sql data/atis/schema_full_split/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/data/sql data/atis/schema_full_split/train.json -------------------------------------------------------------------------------- /text2sql_experiments/drop_code/domain_languages/drop_language.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/drop_code/domain_languages/drop_language.py -------------------------------------------------------------------------------- /text2sql_experiments/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/requirements.txt -------------------------------------------------------------------------------- /text2sql_experiments/scripts/create_commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/scripts/create_commands.py -------------------------------------------------------------------------------- /text2sql_experiments/scripts/gather_eval_results.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/scripts/gather_eval_results.py -------------------------------------------------------------------------------- /text2sql_experiments/scripts/misc/alignment_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/scripts/misc/alignment_utils.py -------------------------------------------------------------------------------- /text2sql_experiments/scripts/misc/cky_spans.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/scripts/misc/cky_spans.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/dataset_utils/span_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/dataset_utils/span_utils.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/dataset_utils/text2sql_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/dataset_utils/text2sql_utils.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/grammar_based_attn_sup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/grammar_based_attn_sup.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/grammar_based_spans.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/grammar_based_spans.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/grammar_based_text2sql_v3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/grammar_based_text2sql_v3.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/no_grammar_based_text2sql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/no_grammar_based_text2sql.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/seq2seq_attn_sup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/seq2seq_attn_sup.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/seq2seq_spans.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/seq2seq_spans.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/text2sql_copynet_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/text2sql_copynet_reader.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/text2sql_seq2seq_attention_regularization_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/text2sql_seq2seq_attention_regularization_reader.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/dataset_readers/text2sql_seq2seq_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/dataset_readers/text2sql_seq2seq_reader.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/preprocess/complete_vars_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/preprocess/complete_vars_dict.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/preprocess/remove_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/preprocess/remove_join.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/preprocess/sql_templates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/preprocess/sql_templates.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/preprocess/text2sql_canonicalizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/preprocess/text2sql_canonicalizer.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/tokenizers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/tokenizers/findollak_sql_tokeniser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/tokenizers/findollak_sql_tokeniser.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/data/tokenizers/whitespace_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/data/tokenizers/whitespace_tokenizer.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/models/grmr_attn_sup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/models/grmr_attn_sup.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/models/grmr_over_spans.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/models/grmr_over_spans.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/models/seq2seq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/models/seq2seq.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/models/seq2seq_attn_sup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/models/seq2seq_attn_sup.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/models/seq2seq_coverage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/models/seq2seq_coverage.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/models/text2sql_copynet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/models/text2sql_copynet.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/models/text2sql_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/models/text2sql_parser.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/modules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/modules/attention/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/modules/attention/bilinear_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/modules/attention/bilinear_attention.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/modules/attention/coverage_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/modules/attention/coverage_attention.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/modules/attention/coverage_attention_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/modules/attention/coverage_attention_v2.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/predictors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/predictors/text2sql_grammar_predictor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/predictors/text2sql_grammar_predictor.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/semparse/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/semparse/contexts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/semparse/contexts/draft.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/semparse/contexts/draft.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/semparse/contexts/text2sql_nogrammar_table_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/semparse/contexts/text2sql_nogrammar_table_context.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/semparse/contexts/text2sql_table_context_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/semparse/contexts/text2sql_table_context_v2.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/semparse/contexts/text2sql_table_context_v3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/semparse/contexts/text2sql_table_context_v3.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/semparse/worlds/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/semparse/worlds/grmr_attn_sup_world.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/semparse/worlds/grmr_attn_sup_world.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/semparse/worlds/text2sql_nogrammar_world.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/semparse/worlds/text2sql_nogrammar_world.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/semparse/worlds/text2sql_world_v3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/semparse/worlds/text2sql_world_v3.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/state_machines/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/state_machines/states/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/state_machines/states/__init__.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/state_machines/states/grammar_based_state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/state_machines/states/grammar_based_state.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/state_machines/states/sql_statelet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/state_machines/states/sql_statelet.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/state_machines/trainers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/state_machines/trainers/__init__.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/state_machines/trainers/maximum_marginal_likelihood.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/state_machines/trainers/maximum_marginal_likelihood.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/state_machines/trainers/maximum_marginal_likelihood_attn_sup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/state_machines/trainers/maximum_marginal_likelihood_attn_sup.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/state_machines/transition_function/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/state_machines/transition_function/basic_transition_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/state_machines/transition_function/basic_transition_function.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/state_machines/transition_function/coverage_transition_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/state_machines/transition_function/coverage_transition_function.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/training/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/training/metrics/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/training/metrics/__init__.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/training/metrics/bleu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/training/metrics/bleu.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/training/metrics/coverage_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/training/metrics/coverage_loss.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/training/metrics/sql_global_templ_acc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/training/metrics/sql_global_templ_acc.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/training/metrics/sql_kb_acc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/training/metrics/sql_kb_acc.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/training/metrics/sql_validity_metric.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/training/metrics/sql_validity_metric.py -------------------------------------------------------------------------------- /text2sql_experiments/text2sql/training/metrics/token_sequence_accuracy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/text2sql/training/metrics/token_sequence_accuracy.py -------------------------------------------------------------------------------- /text2sql_experiments/training_config/best_params.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/best_params.xlsx -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_adv_grammar_bert_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_adv_grammar_bert_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_ati_attnsupgrammar_glove_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_ati_attnsupgrammar_glove_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_ati_attnsupseq2seq_glove_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_ati_attnsupseq2seq_glove_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_ati_covrgseq2seq_attn_reg_elmo_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_ati_covrgseq2seq_attn_reg_elmo_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_ati_covrgseq2seq_glove_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_ati_covrgseq2seq_glove_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_ati_grammar_elmo_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_ati_grammar_elmo_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_ati_grammar_glove_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_ati_grammar_glove_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_ati_seq2seq_bert_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_ati_seq2seq_bert_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_ati_seq2seq_elmo_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_ati_seq2seq_elmo_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_ati_seq2seq_glove_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_ati_seq2seq_glove_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_ati_spansseq2seq_glove_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_ati_spansseq2seq_glove_config.jsonnet -------------------------------------------------------------------------------- /text2sql_experiments/training_config/iid_geo_attnsupcovrgseq2seq_glove_config.jsonnet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/text2sql_experiments/training_config/iid_geo_attnsupcovrgseq2seq_glove_config.jsonnet -------------------------------------------------------------------------------- /utils/calflow/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/calflow/experiment_configs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/calflow/experiment_configs.py -------------------------------------------------------------------------------- /utils/calflow/extract_span_alignment_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/calflow/extract_span_alignment_dataset.py -------------------------------------------------------------------------------- /utils/calflow/preprocess_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/calflow/preprocess_dataset.py -------------------------------------------------------------------------------- /utils/calflow/run_experiments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/calflow/run_experiments.py -------------------------------------------------------------------------------- /utils/calflow/train_giza_alignment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/calflow/train_giza_alignment.py -------------------------------------------------------------------------------- /utils/cfq/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/cfq/cfq_utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/cfq/cfq_utils/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/cfq/cfq_utils/preprocess.py -------------------------------------------------------------------------------- /utils/cfq/extract_span_alignment_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/cfq/extract_span_alignment_dataset.py -------------------------------------------------------------------------------- /utils/cfq/rewrite_sparql.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/cfq/rewrite_sparql.py -------------------------------------------------------------------------------- /utils/cfq/rewrite_sparql_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/cfq/rewrite_sparql_test.py -------------------------------------------------------------------------------- /utils/cfq/sparql_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/cfq/sparql_parser.py -------------------------------------------------------------------------------- /utils/cfq/train_giza_alignment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/cfq/train_giza_alignment.py -------------------------------------------------------------------------------- /utils/sequence_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/sequence_utils.py -------------------------------------------------------------------------------- /utils/sexp_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/sexp_utils.py -------------------------------------------------------------------------------- /utils/sql/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/sql/extract_span_alignment_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/sql/extract_span_alignment_dataset.py -------------------------------------------------------------------------------- /utils/sql/preprocess_spider.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/sql/preprocess_spider.py -------------------------------------------------------------------------------- /utils/sql/sql_utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/sql/sql_utils/encoder_input_canonicalizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/sql/sql_utils/encoder_input_canonicalizer.py -------------------------------------------------------------------------------- /utils/sql/sql_utils/text2sql_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/sql/sql_utils/text2sql_utils.py -------------------------------------------------------------------------------- /utils/sql/string_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/sql/string_util.py -------------------------------------------------------------------------------- /utils/sql/train_giza_alignment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/compositional-generalization-span-level-attention/HEAD/utils/sql/train_giza_alignment.py --------------------------------------------------------------------------------