Python Graph Embedding Library for Knowledge graph
Project description
GraphEmbedding
Python Graph Embedding Libary for Knowledge graph
This project provides Tensorflow2.0 implementatinons of several different popular graph embeddings for knowledge graph.
Installation:
graphembedding will be released on pypi soon.
python setup.py install
Basic Usages:
It's simple. example code is below.
The embedding object is returned as pd.Dataframe, so it can be used easily.
from graphembedding.playground import load_github
from graphembedding import complEx, transE
# Load Sample dataset
github_dataset = load_github()
triplets = github_dataset[['subject','relation','object']].values
# That's all. One line code.
node_embedding, edge_embedding = complEx(triplets)
# if you wanna use transE,
# node_embedding, edge_embedding = transE(triplets)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graphembedding-0.1-py3-none-any.whl.
File metadata
- Download URL: graphembedding-0.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eccb93fdb93852b432a3b3942155916d2dbe76f5642db68c1d4f6f4e5f340d72
|
|
| MD5 |
35eb04e44872d6652510f50463c287d1
|
|
| BLAKE2b-256 |
930916cf3d40eba27badd506c2490034a1befd6bc0bb50c40b63847165eea58a
|