Practical overview
When it fits
Use it when a spaCy workflow needs to resolve recognized entity mentions to Wikidata records and pass those links or associated metadata to later processing.
Who it is for
- Developers building spaCy text-processing pipelines that need entity disambiguation or Wikidata identifiers.
- NLP practitioners using pretrained or custom spaCy named-entity recognition models.
Documented uses
- Attach Wikidata QIDs, URLs and scores to recognized entity mentions.
- Retrieve additional entity descriptions, standardized terms or related knowledge-base identifiers.
- Process multiple texts through a spaCy pipeline.
Requirements & limits
- The documented workflow requires spaCy and a pretrained or custom NER model; the README's example uses the English en_core_web_sm model.
- English is the default disambiguation-resource language; the documentation describes specifying another language.
- The component's default span attributes include a Wikidata QID, URL and score; extra_info enables additional fields.
- The repository identifies the library as MIT-licensed.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add Wikidata entity linking to a spaCy pipeline
Process text with a spaCy NER model and attach Wikidata identifiers, URLs, and disambiguation scores to detected entities.
Before you start
- Python 3.7 or later, as indicated by the repository’s Python version badge.
- The
spacyfishingpackage and spaCy installed. - A pretrained spaCy language model for NER, or a custom NER model.
Steps
Install the component with the command below.
pip install spacyfishingInstall a pretrained spaCy model for NER; the documented English example uses the command below.
python -m spacy download en_core_web_smLoad the model with
spacy.load("en_core_web_sm")and add the component usingnlp_model.add_pipe("entityfishing").Pass text to the pipeline, then inspect
doc.entsand each entity’sent._.kb_qid,ent._.url_wikidata, andent._.nerd_scoreattributes.
Expected outcome
The pipeline’s detected entities are linked and disambiguated against Wikidata, with a QID, Wikidata URL, and score attached to each entity span.
Guide limitations
- The documented default attributes are the QID, Wikidata URL, and score; additional Wikidata information requires
extra_info=Truein the component configuration. - The README provides an example and sample output but does not establish that these results are guaranteed for other text or environments.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- Lucaterre/spacyfishing · Official homepage title · retained in its source language

