├── .gitignore ├── README.md ├── data ├── RoBERTa-SST-2 │ ├── dev.tsv │ ├── test.tsv │ └── train.tsv ├── RoBERTa-SST-5 │ ├── dev.tsv │ └── train.tsv ├── RoBERTa-SUBJ │ ├── dev.tsv │ └── train.tsv ├── XLNet-SST-2 │ ├── dev.tsv │ ├── test.tsv │ └── train.tsv ├── XLNet-SST-5 │ ├── dev.tsv │ └── train.tsv └── XLNet-SUBJ │ ├── dev.tsv │ └── train.tsv ├── model ├── SE_XLNet.py ├── __init__.py ├── data.py ├── data_utils.py ├── infer_model.py ├── model_utils.py ├── requirements.txt └── run.py ├── preprocessing ├── __init__.py ├── add_ngram_dist.py ├── build_concept_store.py ├── constituency_parse.py ├── process_trec_dataset.py ├── store_parse_trees.py └── utils.py ├── requirements.txt └── scripts ├── run_preprocessing.sh └── run_self_explain.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/README.md -------------------------------------------------------------------------------- /data/RoBERTa-SST-2/dev.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/RoBERTa-SST-2/dev.tsv -------------------------------------------------------------------------------- /data/RoBERTa-SST-2/test.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/RoBERTa-SST-2/test.tsv -------------------------------------------------------------------------------- /data/RoBERTa-SST-2/train.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/RoBERTa-SST-2/train.tsv -------------------------------------------------------------------------------- /data/RoBERTa-SST-5/dev.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/RoBERTa-SST-5/dev.tsv -------------------------------------------------------------------------------- /data/RoBERTa-SST-5/train.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/RoBERTa-SST-5/train.tsv -------------------------------------------------------------------------------- /data/RoBERTa-SUBJ/dev.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/RoBERTa-SUBJ/dev.tsv -------------------------------------------------------------------------------- /data/RoBERTa-SUBJ/train.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/RoBERTa-SUBJ/train.tsv -------------------------------------------------------------------------------- /data/XLNet-SST-2/dev.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/XLNet-SST-2/dev.tsv -------------------------------------------------------------------------------- /data/XLNet-SST-2/test.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/XLNet-SST-2/test.tsv -------------------------------------------------------------------------------- /data/XLNet-SST-2/train.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/XLNet-SST-2/train.tsv -------------------------------------------------------------------------------- /data/XLNet-SST-5/dev.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/XLNet-SST-5/dev.tsv -------------------------------------------------------------------------------- /data/XLNet-SST-5/train.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/XLNet-SST-5/train.tsv -------------------------------------------------------------------------------- /data/XLNet-SUBJ/dev.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/XLNet-SUBJ/dev.tsv -------------------------------------------------------------------------------- /data/XLNet-SUBJ/train.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/data/XLNet-SUBJ/train.tsv -------------------------------------------------------------------------------- /model/SE_XLNet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/model/SE_XLNet.py -------------------------------------------------------------------------------- /model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /model/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/model/data.py -------------------------------------------------------------------------------- /model/data_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/model/data_utils.py -------------------------------------------------------------------------------- /model/infer_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/model/infer_model.py -------------------------------------------------------------------------------- /model/model_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/model/model_utils.py -------------------------------------------------------------------------------- /model/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/model/requirements.txt -------------------------------------------------------------------------------- /model/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/model/run.py -------------------------------------------------------------------------------- /preprocessing/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /preprocessing/add_ngram_dist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/preprocessing/add_ngram_dist.py -------------------------------------------------------------------------------- /preprocessing/build_concept_store.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/preprocessing/build_concept_store.py -------------------------------------------------------------------------------- /preprocessing/constituency_parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/preprocessing/constituency_parse.py -------------------------------------------------------------------------------- /preprocessing/process_trec_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/preprocessing/process_trec_dataset.py -------------------------------------------------------------------------------- /preprocessing/store_parse_trees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/preprocessing/store_parse_trees.py -------------------------------------------------------------------------------- /preprocessing/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/preprocessing/utils.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/requirements.txt -------------------------------------------------------------------------------- /scripts/run_preprocessing.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/scripts/run_preprocessing.sh -------------------------------------------------------------------------------- /scripts/run_self_explain.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dheerajrajagopal/SelfExplain/HEAD/scripts/run_self_explain.sh --------------------------------------------------------------------------------