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 | Provenance | Actions |
|---|---|---|---|---|
| kgeditor-1.0.0.tar.gz | 38.7 kB | Without provenance | Details for kgeditor-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kgeditor-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for kgeditor-1.0.0-py3-none-any.whl |
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
|
Security for kgeditor 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.