├── .gitignore ├── LICENSE ├── README.md ├── data.py ├── data_args.py ├── datasets ├── synthbio.py └── synthbio │ ├── SynthBio.json │ ├── make_splits.py │ ├── test.json │ ├── train.json │ └── val.json ├── e2e_data ├── dev.txt └── test.txt ├── eval_baselines.py ├── eval_e2e_templates.py ├── eval_synthbio_templates.py ├── fact_checker.py ├── field_transformation.py ├── figure └── figure_1.png ├── infilling_utils.py ├── load_utils.py ├── model_args.py ├── preprocessing.py ├── refine_utils.py ├── requirements.txt ├── requirements_full.txt ├── scripts ├── e2e │ ├── delex_bart.sh │ ├── delex_bart_select.sh │ ├── delex_gt.sh │ ├── eval_seq2seq.sh │ ├── fact_check.sh │ ├── refine.sh │ ├── train_infill.sh │ └── train_seq2seq.sh └── synthbio │ ├── delex_bart.sh │ ├── delex_bart_select.sh │ ├── delex_gt.sh │ ├── refine.sh │ ├── train_infill.sh │ └── train_seq2seq.sh ├── seq2seq_baseline.py ├── synthbio ├── SynthBio.json ├── make_splits.py ├── test.json ├── train.json └── val.json ├── template_args.py ├── template_refinement.py ├── template_search.py ├── template_search_bart.py ├── train_infill.py ├── train_seq2seq.py └── utils.py /.gitignore: -------------------------------------------------------------------------------- 1 | templm_pretrained.zip 2 | e2e-metrics 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/README.md -------------------------------------------------------------------------------- /data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/data.py -------------------------------------------------------------------------------- /data_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/data_args.py -------------------------------------------------------------------------------- /datasets/synthbio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/datasets/synthbio.py -------------------------------------------------------------------------------- /datasets/synthbio/SynthBio.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/datasets/synthbio/SynthBio.json -------------------------------------------------------------------------------- /datasets/synthbio/make_splits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/datasets/synthbio/make_splits.py -------------------------------------------------------------------------------- /datasets/synthbio/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/datasets/synthbio/test.json -------------------------------------------------------------------------------- /datasets/synthbio/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/datasets/synthbio/train.json -------------------------------------------------------------------------------- /datasets/synthbio/val.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/datasets/synthbio/val.json -------------------------------------------------------------------------------- /e2e_data/dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/e2e_data/dev.txt -------------------------------------------------------------------------------- /e2e_data/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/e2e_data/test.txt -------------------------------------------------------------------------------- /eval_baselines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/eval_baselines.py -------------------------------------------------------------------------------- /eval_e2e_templates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/eval_e2e_templates.py -------------------------------------------------------------------------------- /eval_synthbio_templates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/eval_synthbio_templates.py -------------------------------------------------------------------------------- /fact_checker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/fact_checker.py -------------------------------------------------------------------------------- /field_transformation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/field_transformation.py -------------------------------------------------------------------------------- /figure/figure_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/figure/figure_1.png -------------------------------------------------------------------------------- /infilling_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/infilling_utils.py -------------------------------------------------------------------------------- /load_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/load_utils.py -------------------------------------------------------------------------------- /model_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/model_args.py -------------------------------------------------------------------------------- /preprocessing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/preprocessing.py -------------------------------------------------------------------------------- /refine_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/refine_utils.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/requirements.txt -------------------------------------------------------------------------------- /requirements_full.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/requirements_full.txt -------------------------------------------------------------------------------- /scripts/e2e/delex_bart.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/e2e/delex_bart.sh -------------------------------------------------------------------------------- /scripts/e2e/delex_bart_select.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/e2e/delex_bart_select.sh -------------------------------------------------------------------------------- /scripts/e2e/delex_gt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/e2e/delex_gt.sh -------------------------------------------------------------------------------- /scripts/e2e/eval_seq2seq.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/e2e/eval_seq2seq.sh -------------------------------------------------------------------------------- /scripts/e2e/fact_check.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/e2e/fact_check.sh -------------------------------------------------------------------------------- /scripts/e2e/refine.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/e2e/refine.sh -------------------------------------------------------------------------------- /scripts/e2e/train_infill.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/e2e/train_infill.sh -------------------------------------------------------------------------------- /scripts/e2e/train_seq2seq.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/e2e/train_seq2seq.sh -------------------------------------------------------------------------------- /scripts/synthbio/delex_bart.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/synthbio/delex_bart.sh -------------------------------------------------------------------------------- /scripts/synthbio/delex_bart_select.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/synthbio/delex_bart_select.sh -------------------------------------------------------------------------------- /scripts/synthbio/delex_gt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/synthbio/delex_gt.sh -------------------------------------------------------------------------------- /scripts/synthbio/refine.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/synthbio/refine.sh -------------------------------------------------------------------------------- /scripts/synthbio/train_infill.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/synthbio/train_infill.sh -------------------------------------------------------------------------------- /scripts/synthbio/train_seq2seq.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/scripts/synthbio/train_seq2seq.sh -------------------------------------------------------------------------------- /seq2seq_baseline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/seq2seq_baseline.py -------------------------------------------------------------------------------- /synthbio/SynthBio.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/synthbio/SynthBio.json -------------------------------------------------------------------------------- /synthbio/make_splits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/synthbio/make_splits.py -------------------------------------------------------------------------------- /synthbio/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/synthbio/test.json -------------------------------------------------------------------------------- /synthbio/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/synthbio/train.json -------------------------------------------------------------------------------- /synthbio/val.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/synthbio/val.json -------------------------------------------------------------------------------- /template_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/template_args.py -------------------------------------------------------------------------------- /template_refinement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/template_refinement.py -------------------------------------------------------------------------------- /template_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/template_search.py -------------------------------------------------------------------------------- /template_search_bart.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/template_search_bart.py -------------------------------------------------------------------------------- /train_infill.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/train_infill.py -------------------------------------------------------------------------------- /train_seq2seq.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/train_seq2seq.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tiiiger/templm/HEAD/utils.py --------------------------------------------------------------------------------