Open-source toolkit for knowledge graph embedding research
Top 12.6% on sourcepulse
OpenKE is an open-source toolkit for knowledge graph embedding (KGE), offering efficient implementations of various KGE models in PyTorch and TensorFlow. It targets researchers and practitioners in knowledge representation learning, providing a flexible platform for training, evaluating, and deploying KGE models on large-scale knowledge graphs.
How It Works
OpenKE leverages PyTorch for model implementation and Python interfaces, allowing for GPU acceleration. Core operations like data preprocessing and negative sampling are optimized using C++. This hybrid approach balances ease of use with high performance, enabling efficient handling of complex relations and relational paths, notably with its featured TransR and PTransE models.
Quick Start & Requirements
OpenKE-PyTorch
branch and run bash make.sh
to compile C++ components.python train_transe_FB15K237.py
.train2id.txt
, entity2id.txt
, and relation2id.txt
files.Highlighted Details
Maintenance & Community
The project is primarily contributed by researchers from THU, including Xu Han, Yankai Lin, and Zhiyuan Liu. The project is part of the larger OpenSKL initiative.
Licensing & Compatibility
The toolkit itself is available under a permissive license, while pre-trained embeddings are provided under the MIT license. This generally allows for commercial use and integration with closed-source applications.
Limitations & Caveats
The README mentions TensorFlow 1.0 support, which is now deprecated. While PyTorch is the primary focus, users might need to manage dependencies for older TensorFlow versions if using those specific repositories.
1 year ago
Inactive