├── README.md ├── model_params.json ├── models ├── __init__.py ├── baselines.py ├── factory.py ├── layers.py └── our_models.py ├── parsing ├── __init__.py └── legacy_sp_models.py ├── requirements.txt ├── resources ├── properties-with-labels.txt ├── property_blacklist.txt └── relation_statistics.txt ├── result └── test_accuracy.py ├── semanticgraph ├── __init__.py ├── graph_utils.py ├── io.py └── vis_utils.py ├── test.py ├── train.py └── utils ├── __init__.py ├── build_adjecent_matrix.py ├── conversion_util.py ├── embedding_utils.py ├── evaluation_utils.py ├── graph.py └── torchutil.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/README.md -------------------------------------------------------------------------------- /model_params.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/model_params.json -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/baselines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/models/baselines.py -------------------------------------------------------------------------------- /models/factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/models/factory.py -------------------------------------------------------------------------------- /models/layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/models/layers.py -------------------------------------------------------------------------------- /models/our_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/models/our_models.py -------------------------------------------------------------------------------- /parsing/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /parsing/legacy_sp_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/parsing/legacy_sp_models.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/requirements.txt -------------------------------------------------------------------------------- /resources/properties-with-labels.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/resources/properties-with-labels.txt -------------------------------------------------------------------------------- /resources/property_blacklist.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/resources/property_blacklist.txt -------------------------------------------------------------------------------- /resources/relation_statistics.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/resources/relation_statistics.txt -------------------------------------------------------------------------------- /result/test_accuracy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/result/test_accuracy.py -------------------------------------------------------------------------------- /semanticgraph/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /semanticgraph/graph_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/semanticgraph/graph_utils.py -------------------------------------------------------------------------------- /semanticgraph/io.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/semanticgraph/io.py -------------------------------------------------------------------------------- /semanticgraph/vis_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/semanticgraph/vis_utils.py -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/test.py -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/train.py -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/build_adjecent_matrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/utils/build_adjecent_matrix.py -------------------------------------------------------------------------------- /utils/conversion_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/utils/conversion_util.py -------------------------------------------------------------------------------- /utils/embedding_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/utils/embedding_utils.py -------------------------------------------------------------------------------- /utils/evaluation_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/utils/evaluation_utils.py -------------------------------------------------------------------------------- /utils/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/utils/graph.py -------------------------------------------------------------------------------- /utils/torchutil.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thunlp/GP-GNN/HEAD/utils/torchutil.py --------------------------------------------------------------------------------