LinkingTK
A Python toolkit that unifies four text-linking tasks behind a common interface:
- Entity Alignment (EA) — matching entities between two knowledge graphs.
- Entity Linking (EL) — linking mentions in text to a knowledge base.
- Word Sense Disambiguation (WSD) — linking mentions in text to dictionary senses.
- Word Sense Alignment (WSA) — matching senses between two dictionaries.
See the generated documentation at
teanga.io/linkingtk for a
Getting Started guide, the Entity/BaseLinker design (Key Concepts),
dataset references, and the full API reference.
Installation
pip install linkingtk
# with optional extras, e.g.
pip install "linkingtk[graph,nlp,kge]"
Available extras: graph, nlp, kge, wn, wikipedia, vector-index,
llm, server, and all. See the
installation guide
for what each one adds.
Project layout
linkingtk/
├── data/ # Local data files
├── src/linkingtk/
│ ├── core/ # Entity, AlignmentResult, EntitySource
│ ├── sources/ # EntitySource wrappers (wn, ...)
│ ├── blocking/ # BlockingStrategy, ExactMatch, ...
│ ├── algorithms/ # BaseLinker + ea/el/wsd/wsa submodules
│ ├── datasets/ # Dataset loaders & HF integrations
│ ├── utils/ # NetworkX / RDFLib graph helpers
│ ├── train/ # Trainer / CrossEncoderTrainer / TrainingArguments
│ └── eval/ # Evaluator / EvaluationReport
├── tests/ # Mirrors src/ layout
└── examples/ # Runnable sample scripts
Development setup
uv sync --extra graph --extra nlp --group dev
uv run pytest
uv run python examples/basic_exact_match.py
Development
uv run ruff check .
uv run ruff format .
uv run mypy --strict src/linkingtk
Docs
uv sync --group docs
uv run mkdocs serve # live preview at http://127.0.0.1:8000
uv run mkdocs build --strict
Docs are built and deployed to GitHub Pages automatically on every push to
main (see .github/workflows/docs.yml).
License
Apache License 2.0 — see LICENSE.
Metadata
Release files for linkingtk 0.1.1
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 |
|---|---|---|---|---|
| linkingtk-0.1.1.tar.gz | 406.5 kB | With provenance | Details for linkingtk-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| linkingtk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for linkingtk-0.1.1-py3-none-any.whl |
Total release size: 829.8 kB
Release files / linkingtk-0.1.1.tar.gz
| Download URL | linkingtk-0.1.1.tar.gz |
|---|---|
| Size | 406.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7ddd56b85a77dc1ccac81c2ae17067cf3244b850f6af7a488a9aa47f61474e8
|
|
BLAKE2b-256 checksum How to use checksums |
41a41a2946c9aac2db5d7b82288823c545c95e1be0eb9e3612f0d57a41176687
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / linkingtk-0.1.1-py3-none-any.whl
| Download URL | linkingtk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 423.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d97e4c7e200a3ed9ff843dfc27eed43a549562d397c92f331a489e185e0c64ee
|
|
BLAKE2b-256 checksum How to use checksums |
67bd091765ae22d0c9026d5fc5f1f57c2c7ae5c255e01f03c5069b5ca5ba6d53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logSecurity for linkingtk 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for linkingtk-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logA 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.