All Projects → MIRALab-USTC → Kge Hake

MIRALab-USTC / Kge Hake

Licence: mit
The code of paper Learning Hierarchy-Aware Knowledge Graph Embeddings for Link Prediction. Zhanqiu Zhang, Jianyu Cai, Yongdong Zhang, Jie Wang. AAAI 2020.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Kge Hake

Knowledgegraph
This repository for Web Crawling, Information Extraction, and Knowledge Graph build up.
Stars: ✭ 28 (-72.28%)
Mutual labels:  knowledge-graph
Stock Knowledge Graph
利用网络上公开的数据构建一个小型的证券知识图谱/知识库
Stars: ✭ 1,182 (+1070.3%)
Mutual labels:  knowledge-graph
Kglab
Graph-Based Data Science: an abstraction layer in Python for building knowledge graphs, integrated with popular graph libraries – atop Pandas, RDFlib, pySHACL, RAPIDS, NetworkX, iGraph, PyVis, pslpython, pyarrow, etc.
Stars: ✭ 98 (-2.97%)
Mutual labels:  knowledge-graph
Bbw
Semantic annotator: Matching CSV to a Wikibase instance (e.g., Wikidata) via Meta-lookup
Stars: ✭ 42 (-58.42%)
Mutual labels:  knowledge-graph
Gitjournal
Mobile first Note Taking integrated with Git
Stars: ✭ 1,138 (+1026.73%)
Mutual labels:  knowledge-graph
Kgpolicy
Reinforced Negative Sampling over Knowledge Graph for Recommendation, WWW2020
Stars: ✭ 83 (-17.82%)
Mutual labels:  knowledge-graph
Kg Demo For Movie
从无到有构建一个电影知识图谱,并基于该KG,开发一个简易的KBQA程序。
Stars: ✭ 876 (+767.33%)
Mutual labels:  knowledge-graph
Open Semantic Entity Search Api
Open Source REST API for named entity extraction, named entity linking, named entity disambiguation, recommendation & reconciliation of entities like persons, organizations and places for (semi)automatic semantic tagging & analysis of documents by linked data knowledge graph like SKOS thesaurus, RDF ontology, database(s) or list(s) of names
Stars: ✭ 98 (-2.97%)
Mutual labels:  knowledge-graph
Daas Start Kit
React/Java 技术栈,代码和数据云端生成,本地部署低代码平台,手写代码和生成代码目录分离,适合专业开发人员开发长期维护的软件。
Stars: ✭ 71 (-29.7%)
Mutual labels:  knowledge-graph
Scm Biz Suite
供应链中台系统基础版,集成零售管理, 电子商务, 供应链管理, 财务管理, 车队管理, 仓库管理, 人员管理, 产品管理, 订单管理, 会员管理, 连锁店管理, 加盟管理, 前端React/Ant Design, 后端Java Spring+自有开源框架,全面支持MySQL, PostgreSQL, 全面支持国产数据库南大通用GBase 8s,通过REST接口调用,前后端完全分离。
Stars: ✭ 1,310 (+1197.03%)
Mutual labels:  knowledge-graph
Elliot
Comprehensive and Rigorous Framework for Reproducible Recommender Systems Evaluation
Stars: ✭ 49 (-51.49%)
Mutual labels:  knowledge-graph
Tianchi Ruijin
瑞金医院MMC人工智能辅助构建知识图谱大赛-baseline
Stars: ✭ 62 (-38.61%)
Mutual labels:  knowledge-graph
Cesi
WWW 2018: CESI: Canonicalizing Open Knowledge Bases using Embeddings and Side Information
Stars: ✭ 85 (-15.84%)
Mutual labels:  knowledge-graph
Vizel
Zettelkasten visualization and stats🤩🗒
Stars: ✭ 33 (-67.33%)
Mutual labels:  knowledge-graph
Query2box
Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
Stars: ✭ 98 (-2.97%)
Mutual labels:  knowledge-graph
Nlp Knowledge Graph
自然语言处理、知识图谱、对话系统三大技术研究与应用。
Stars: ✭ 908 (+799.01%)
Mutual labels:  knowledge-graph
Soweego
Link Wikidata items to large catalogs
Stars: ✭ 74 (-26.73%)
Mutual labels:  knowledge-graph
Kgnn Ls
A tensorflow implementation of Knowledge-aware Graph Neural Networks with Label Smoothness regularization
Stars: ✭ 101 (+0%)
Mutual labels:  knowledge-graph
Economic audit knowledge graph
经济责任审计知识图谱:网络爬虫、关系抽取、领域词汇判定
Stars: ✭ 98 (-2.97%)
Mutual labels:  knowledge-graph
Zkviz
Zettel Network Visualizer
Stars: ✭ 88 (-12.87%)
Mutual labels:  knowledge-graph

HAKE: Hierarchy-Aware Knowledge Graph Embedding

This is the code of paper Learning Hierarchy-Aware Knowledge Graph Embeddings for Link Prediction. Zhanqiu Zhang, Jianyu Cai, Yongdong Zhang, Jie Wang. AAAI 2020. arxiv

Dependencies

Results

The results of HAKE and the baseline model ModE on WN18RR, FB15k-237 and YAGO3-10 are as follows.

WN18RR

MRR [email protected] [email protected] [email protected]
ModE 0.472 0.427 0.486 0.564
HAKE 0.496 ± 0.001 0.452 0.516 0.582

FB15k-237

MRR [email protected] [email protected] [email protected]
ModE 0.341 0.244 0.380 0.534
HAKE 0.346 ± 0.001 0.250 0.381 0.542

YAGO3-10

MRR [email protected] [email protected] [email protected]
ModE 0.510 0.421 0.562 0.660
HAKE 0.546 ± 0.001 0.462 0.596 0.694

Running the code

Usage

bash runs.sh {train | valid | test} {ModE | HAKE} {wn18rr | FB15k-237 | YAGO3-10} <gpu_id> \
<save_id> <train_batch_size> <negative_sample_size> <hidden_dim> <gamma> <alpha> \
<learning_rate> <num_train_steps> <test_batch_size> [modulus_weight] [phase_weight]
  • { | }: Mutually exclusive items. Choose one from them.
  • < >: Placeholder for which you must supply a value.
  • [ ]: Optional items.

Remark: [modulus_weight] and [phase_weight] are available only for the HAKE model.

To reproduce the results of HAKE and ModE, run the following commands.

HAKE

# WN18RR
bash runs.sh train HAKE wn18rr 0 0 512 1024 500 6.0 0.5 0.00005 80000 8 0.5 0.5

# FB15k-237
bash runs.sh train HAKE FB15k-237 0 0 1024 256 1000 9.0 1.0 0.00005 100000 16 3.5 1.0

# YAGO3-10
bash runs.sh train HAKE YAGO3-10 0 0 1024 256 500 24.0 1.0 0.0002 180000 4 1.0 0.5

ModE

# WN18RR
bash runs.sh train ModE wn18rr 0 0 512 1024 500 6.0 0.5 0.0001 80000 8 --no_decay

# FB15k-237
bash runs.sh train ModE FB15k-237 0 0 1024 256 1000 9.0 1.0 0.0001 100000 16

# YAGO3-10
bash runs.sh train ModE YAGO3-10 0 0 1024 256 500 24.0 1.0 0.0002 80000 4

Citation

If you find this code useful, please consider citing the following paper.

@inproceedings{zhang2020learning,
  title={Learning Hierarchy-Aware Knowledge Graph Embeddings for Link Prediction},
  author={Zhang, Zhanqiu and Cai, Jianyu and Zhang, Yongdong and Wang, Jie},
  booktitle={Thirty-Fourth {AAAI} Conference on Artificial Intelligence},
  pages={3065--3072},
  publisher={{AAAI} Press},
  year={2020}
}

Acknowledgement

We refer to the code of RotatE. Thanks for their contributions.

Other Repositories

If you are interested in our work, you may find the following paper useful.

Duality-Induced Regularizer for Tensor Factorization Based Knowledge Graph Completion. Zhanqiu Zhang, Jianyu Cai, Jie Wang. NeurIPS 2020. [paper] [code]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].