Skip to main content

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

graphembedding-0.1-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page