├── .gitignore ├── Bart_Program ├── README.md ├── data.py ├── predict.py ├── preprocess.py └── train.py ├── Bart_SPARQL ├── README.md ├── data.py ├── predict.py ├── preprocess.py ├── sparql_engine.py └── train.py ├── BlindGRU ├── README.md ├── data.py ├── model.py ├── predict.py ├── preprocess.py └── train.py ├── KVMemNN ├── README.md ├── data.py ├── model.py ├── predict.py ├── preprocess.py └── train.py ├── LICENSE ├── Program ├── data.py ├── executor_rule.py ├── parser.py ├── predict.py ├── preprocess.py ├── readme.md └── train.py ├── README.md ├── RGCN ├── README.md ├── data.py ├── model.py ├── predict.py ├── preprocess.py └── train.py ├── SPARQL ├── README.md ├── data.py ├── model.py ├── predict.py ├── preprocess.py ├── sparql_engine.py └── train.py ├── SRN ├── data.py ├── input │ └── pgrk.txt ├── knowledge_graph.py ├── model.py ├── predict.py ├── preprocess.py ├── readme.md └── train.py ├── evaluate.py └── utils ├── BiGRU.py ├── load_kb.py ├── lr_scheduler.py ├── misc.py ├── pickle_glove.py └── value_class.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/.gitignore -------------------------------------------------------------------------------- /Bart_Program/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_Program/README.md -------------------------------------------------------------------------------- /Bart_Program/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_Program/data.py -------------------------------------------------------------------------------- /Bart_Program/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_Program/predict.py -------------------------------------------------------------------------------- /Bart_Program/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_Program/preprocess.py -------------------------------------------------------------------------------- /Bart_Program/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_Program/train.py -------------------------------------------------------------------------------- /Bart_SPARQL/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_SPARQL/README.md -------------------------------------------------------------------------------- /Bart_SPARQL/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_SPARQL/data.py -------------------------------------------------------------------------------- /Bart_SPARQL/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_SPARQL/predict.py -------------------------------------------------------------------------------- /Bart_SPARQL/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_SPARQL/preprocess.py -------------------------------------------------------------------------------- /Bart_SPARQL/sparql_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_SPARQL/sparql_engine.py -------------------------------------------------------------------------------- /Bart_SPARQL/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Bart_SPARQL/train.py -------------------------------------------------------------------------------- /BlindGRU/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/BlindGRU/README.md -------------------------------------------------------------------------------- /BlindGRU/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/BlindGRU/data.py -------------------------------------------------------------------------------- /BlindGRU/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/BlindGRU/model.py -------------------------------------------------------------------------------- /BlindGRU/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/BlindGRU/predict.py -------------------------------------------------------------------------------- /BlindGRU/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/BlindGRU/preprocess.py -------------------------------------------------------------------------------- /BlindGRU/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/BlindGRU/train.py -------------------------------------------------------------------------------- /KVMemNN/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/KVMemNN/README.md -------------------------------------------------------------------------------- /KVMemNN/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/KVMemNN/data.py -------------------------------------------------------------------------------- /KVMemNN/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/KVMemNN/model.py -------------------------------------------------------------------------------- /KVMemNN/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/KVMemNN/predict.py -------------------------------------------------------------------------------- /KVMemNN/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/KVMemNN/preprocess.py -------------------------------------------------------------------------------- /KVMemNN/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/KVMemNN/train.py -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/LICENSE -------------------------------------------------------------------------------- /Program/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Program/data.py -------------------------------------------------------------------------------- /Program/executor_rule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Program/executor_rule.py -------------------------------------------------------------------------------- /Program/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Program/parser.py -------------------------------------------------------------------------------- /Program/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Program/predict.py -------------------------------------------------------------------------------- /Program/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Program/preprocess.py -------------------------------------------------------------------------------- /Program/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Program/readme.md -------------------------------------------------------------------------------- /Program/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/Program/train.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/README.md -------------------------------------------------------------------------------- /RGCN/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/RGCN/README.md -------------------------------------------------------------------------------- /RGCN/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/RGCN/data.py -------------------------------------------------------------------------------- /RGCN/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/RGCN/model.py -------------------------------------------------------------------------------- /RGCN/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/RGCN/predict.py -------------------------------------------------------------------------------- /RGCN/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/RGCN/preprocess.py -------------------------------------------------------------------------------- /RGCN/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/RGCN/train.py -------------------------------------------------------------------------------- /SPARQL/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SPARQL/README.md -------------------------------------------------------------------------------- /SPARQL/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SPARQL/data.py -------------------------------------------------------------------------------- /SPARQL/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SPARQL/model.py -------------------------------------------------------------------------------- /SPARQL/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SPARQL/predict.py -------------------------------------------------------------------------------- /SPARQL/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SPARQL/preprocess.py -------------------------------------------------------------------------------- /SPARQL/sparql_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SPARQL/sparql_engine.py -------------------------------------------------------------------------------- /SPARQL/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SPARQL/train.py -------------------------------------------------------------------------------- /SRN/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SRN/data.py -------------------------------------------------------------------------------- /SRN/input/pgrk.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SRN/input/pgrk.txt -------------------------------------------------------------------------------- /SRN/knowledge_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SRN/knowledge_graph.py -------------------------------------------------------------------------------- /SRN/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SRN/model.py -------------------------------------------------------------------------------- /SRN/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SRN/predict.py -------------------------------------------------------------------------------- /SRN/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SRN/preprocess.py -------------------------------------------------------------------------------- /SRN/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SRN/readme.md -------------------------------------------------------------------------------- /SRN/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/SRN/train.py -------------------------------------------------------------------------------- /evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/evaluate.py -------------------------------------------------------------------------------- /utils/BiGRU.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/utils/BiGRU.py -------------------------------------------------------------------------------- /utils/load_kb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/utils/load_kb.py -------------------------------------------------------------------------------- /utils/lr_scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/utils/lr_scheduler.py -------------------------------------------------------------------------------- /utils/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/utils/misc.py -------------------------------------------------------------------------------- /utils/pickle_glove.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/utils/pickle_glove.py -------------------------------------------------------------------------------- /utils/value_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shijx12/KQAPro_Baselines/HEAD/utils/value_class.py --------------------------------------------------------------------------------