KGEditor
Code for our paper “Editing Language Model-based Knowledge Graph Embeddings”.
To use as a python module
pip install -kgeditor
Run the experiments
Training
Edit Task
To train the KGEditor model in the paper on the dataset E-FB15k237, run the command below. For another dataset E-WN18RR just replacing the dataset name will be fine.
./scripts/kgeditor_fb15k237_edit.sh
Add Task
To train the KGEditor model in the paper on the dataset A-FB15k237, run the command below. For another dataset A-WN18RR just replacing the dataset name will be fine.
./scripts/kgeditor_fb15k237_add.sh
Models
This folder contains the base models used for this work.
Metadata
Release files for kgeditor 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kgeditor-1.0.0.tar.gz | 38.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kgeditor-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 80.2 kB
Release files / kgeditor-1.0.0.tar.gz
| Download URL | kgeditor-1.0.0.tar.gz |
|---|---|
| Size | 38.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84c1f35e32487b505280d46a16550c6856cece2259620cd4648fbb13f74c1f1f
|
|
BLAKE2b-256 checksum How to use checksums |
ca427d5ae0111eed9d12a342c1ad7cbfa64060fecbcfebc92f3282c03dc862dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.15
|
Release files / kgeditor-1.0.0-py3-none-any.whl
| Download URL | kgeditor-1.0.0-py3-none-any.whl |
|---|---|
| Size | 41.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2fa62274b880f37b41716864e5a7cb9781547205f1f5d678ffd47709bc37ed2
|
|
BLAKE2b-256 checksum How to use checksums |
1f8350d8ccb328294851a98239e6efeae408dc46916b57d33dfe46e3186b23f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.15
|