├── .gitignore ├── LICENSE ├── README.md ├── benchmarks ├── FB15K │ ├── README │ ├── test.txt │ ├── train.txt │ └── valid.txt ├── GA16K │ ├── gakg-test.txt │ ├── gakg-train.txt │ └── gakg-valid.txt └── WN18 │ ├── README │ ├── Wordnet3.0-LICENSE │ ├── test.txt │ ├── train.txt │ └── valid.txt └── code ├── baselines ├── RESCAL │ ├── examples │ │ └── kinships.py │ ├── rescal │ │ ├── __init__.py │ │ ├── rescal.py │ │ └── version.py │ └── setup.py ├── rotatE │ ├── best_config.sh │ ├── codes │ │ ├── dataloader.py │ │ ├── model.py │ │ └── run.py │ └── run.sh ├── simplE │ ├── SimplE.py │ ├── dataset.py │ ├── main.py │ ├── measure.py │ ├── tester.py │ └── trainer.py ├── transE │ ├── TransE_pytoch.py │ ├── test.py │ └── transE.py └── transH │ ├── TransH.py │ ├── TransH_pytorch.py │ ├── TransH_torch.py │ ├── test.py │ └── testSingleThread.py └── paperknowledge ├── bertQA ├── pytorch_pretrained_bert │ ├── __init__.py │ ├── __main__.py │ ├── convert_gpt2_checkpoint_to_pytorch.py │ ├── convert_openai_checkpoint_to_pytorch.py │ ├── convert_tf_checkpoint_to_pytorch.py │ ├── convert_transfo_xl_checkpoint_to_pytorch.py │ ├── file_utils.py │ ├── modeling.py │ ├── modeling_gpt2.py │ ├── modeling_openai.py │ ├── modeling_transfo_xl.py │ ├── modeling_transfo_xl_utilities.py │ ├── optimization.py │ ├── optimization_openai.py │ ├── tokenization.py │ ├── tokenization_gpt2.py │ ├── tokenization_openai.py │ └── tokenization_transfo_xl.py ├── run_squad.py ├── run_squad_dataset_utils.py ├── run_test.py └── train.json └── paperentity ├── dde └── .db_dde ├── example.py ├── paperkg_ee.py └── stopwords.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/README.md -------------------------------------------------------------------------------- /benchmarks/FB15K/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/FB15K/README -------------------------------------------------------------------------------- /benchmarks/FB15K/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/FB15K/test.txt -------------------------------------------------------------------------------- /benchmarks/FB15K/train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/FB15K/train.txt -------------------------------------------------------------------------------- /benchmarks/FB15K/valid.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/FB15K/valid.txt -------------------------------------------------------------------------------- /benchmarks/GA16K/gakg-test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/GA16K/gakg-test.txt -------------------------------------------------------------------------------- /benchmarks/GA16K/gakg-train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/GA16K/gakg-train.txt -------------------------------------------------------------------------------- /benchmarks/GA16K/gakg-valid.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/GA16K/gakg-valid.txt -------------------------------------------------------------------------------- /benchmarks/WN18/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/WN18/README -------------------------------------------------------------------------------- /benchmarks/WN18/Wordnet3.0-LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/WN18/Wordnet3.0-LICENSE -------------------------------------------------------------------------------- /benchmarks/WN18/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/WN18/test.txt -------------------------------------------------------------------------------- /benchmarks/WN18/train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/WN18/train.txt -------------------------------------------------------------------------------- /benchmarks/WN18/valid.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/benchmarks/WN18/valid.txt -------------------------------------------------------------------------------- /code/baselines/RESCAL/examples/kinships.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/RESCAL/examples/kinships.py -------------------------------------------------------------------------------- /code/baselines/RESCAL/rescal/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/RESCAL/rescal/__init__.py -------------------------------------------------------------------------------- /code/baselines/RESCAL/rescal/rescal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/RESCAL/rescal/rescal.py -------------------------------------------------------------------------------- /code/baselines/RESCAL/rescal/version.py: -------------------------------------------------------------------------------- 1 | __version__ = '0.1' 2 | -------------------------------------------------------------------------------- /code/baselines/RESCAL/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/RESCAL/setup.py -------------------------------------------------------------------------------- /code/baselines/rotatE/best_config.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/rotatE/best_config.sh -------------------------------------------------------------------------------- /code/baselines/rotatE/codes/dataloader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/rotatE/codes/dataloader.py -------------------------------------------------------------------------------- /code/baselines/rotatE/codes/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/rotatE/codes/model.py -------------------------------------------------------------------------------- /code/baselines/rotatE/codes/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/rotatE/codes/run.py -------------------------------------------------------------------------------- /code/baselines/rotatE/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/rotatE/run.sh -------------------------------------------------------------------------------- /code/baselines/simplE/SimplE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/simplE/SimplE.py -------------------------------------------------------------------------------- /code/baselines/simplE/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/simplE/dataset.py -------------------------------------------------------------------------------- /code/baselines/simplE/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/simplE/main.py -------------------------------------------------------------------------------- /code/baselines/simplE/measure.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/simplE/measure.py -------------------------------------------------------------------------------- /code/baselines/simplE/tester.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/simplE/tester.py -------------------------------------------------------------------------------- /code/baselines/simplE/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/simplE/trainer.py -------------------------------------------------------------------------------- /code/baselines/transE/TransE_pytoch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/transE/TransE_pytoch.py -------------------------------------------------------------------------------- /code/baselines/transE/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/transE/test.py -------------------------------------------------------------------------------- /code/baselines/transE/transE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/transE/transE.py -------------------------------------------------------------------------------- /code/baselines/transH/TransH.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/transH/TransH.py -------------------------------------------------------------------------------- /code/baselines/transH/TransH_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/transH/TransH_pytorch.py -------------------------------------------------------------------------------- /code/baselines/transH/TransH_torch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/transH/TransH_torch.py -------------------------------------------------------------------------------- /code/baselines/transH/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/transH/test.py -------------------------------------------------------------------------------- /code/baselines/transH/testSingleThread.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/baselines/transH/testSingleThread.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/__init__.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/__main__.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/convert_gpt2_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/convert_gpt2_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/convert_openai_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/convert_openai_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/convert_tf_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/convert_tf_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/convert_transfo_xl_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/convert_transfo_xl_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/file_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/file_utils.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/modeling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/modeling.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/modeling_gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/modeling_gpt2.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/modeling_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/modeling_openai.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/modeling_transfo_xl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/modeling_transfo_xl.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/modeling_transfo_xl_utilities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/modeling_transfo_xl_utilities.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/optimization.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/optimization_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/optimization_openai.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/tokenization.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/tokenization_gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/tokenization_gpt2.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/tokenization_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/tokenization_openai.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/pytorch_pretrained_bert/tokenization_transfo_xl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/pytorch_pretrained_bert/tokenization_transfo_xl.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/run_squad.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/run_squad.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/run_squad_dataset_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/run_squad_dataset_utils.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/run_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/run_test.py -------------------------------------------------------------------------------- /code/paperknowledge/bertQA/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/bertQA/train.json -------------------------------------------------------------------------------- /code/paperknowledge/paperentity/dde/.db_dde: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/paperknowledge/paperentity/example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/paperentity/example.py -------------------------------------------------------------------------------- /code/paperknowledge/paperentity/paperkg_ee.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/paperentity/paperkg_ee.py -------------------------------------------------------------------------------- /code/paperknowledge/paperentity/stopwords.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davendw49/gakg/HEAD/code/paperknowledge/paperentity/stopwords.txt --------------------------------------------------------------------------------