Skip to content

This repo shows the implementation of DeCal where we consider the embeddings in Cl_pqr Clifford algebras.

Notifications You must be signed in to change notification settings

Louis-Mozart/decal-embeddings

Repository files navigation

Embedding-in-Degenerate-Clifford-Algebras

This repo shows the implementation of the DeCal KGE model

Installation

Click me! First, make sure you have anaconda installed

Installation from Source

git clone https://github.com/Louis-Mozart/decal-embeddings
conda create -n dice python=3.10.13 --no-default-packages && conda activate dice && cd Embedding-in-Degenerate-Clifford-Algebras &&
pip3 install -e .

or

pip install dicee

Download Knowledge Graphs

wget https://files.dice-research.org/datasets/dice-embeddings/KGs.zip --no-check-certificate && unzip KGs.zip

How to use this repo?

First install all the necessary packages: pip install -r requirements.txt

Example of how to run the scripts

Run the LES algorithm:

python run_Decal_LES.py --kg UMLS

Run the GSDC algorithm:

python run_Decal_GSDC.py --kg UMLS

Run the GSDC algorithm:

python run_Decal_GS.py --kg UMLS

Run the DeCal with desired values of p,q,r:

python main.py --path_dataset_folder ../decal-embeddings/KGs/FB15k-237 --p 1 --q 1 --r 5

About

This repo shows the implementation of DeCal where we consider the embeddings in Cl_pqr Clifford algebras.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published