Notes

Entity Linking

A news story mentions “Jordan” three times, meaning the country, the basketball player and a colleague at work. Spotting the names is one problem; deciding which real thing each one points to is entity linking — attaching every mention to a specific record in a knowledge base.

The pipeline
Linking runs in three stages once named entity recognition has found the spans:

  • Candidate generation — look the surface form up in an alias table, so that “Big Blue” retrieves IBM, since scoring millions of entities per mention is impossible.
  • Disambiguation — score each candidate against the surrounding text and against the other mentions in the document, because entities that appear together are usually coherent. A bi-encoder comparing mention context with an entity's description is the current standard.
  • NIL detection — conclude that a mention has no entry at all, the stage most systems handle worst.

What it is used for
Wikipedia and Wikidata are the usual targets, and spaCy's entity-linking component or Facebook Research's BLINK give you a working pipeline. The payoff is that text joins to structured data: a question-answering system resolves “her first film” to one person before querying, a compliance scan tells two customers with the same name apart, and a media monitor counts mentions of a company rather than occurrences of a string.

Why it matters
Recognition leaves you with strings; linking turns them into identifiers, and identifiers are what let text be aggregated, joined and queried. Errors here are silent — two entities merge into one, or one splinters into several, and every count built on top is quietly wrong.

Entity linking resolves a mention in text to a unique entry in a knowledge base — deciding that “Jordan” in a given sentence is the country, not the athlete. It follows named entity recognition, adding candidate generation from an alias table, disambiguation against surrounding context, and a decision that no entry exists. It is what connects unstructured text to structured data, enabling reliable aggregation, joins and question answering.

If a friend says “I ran into Paris last week”, you ask which Paris — the city, or the person. Names are shared, and we sort them out from the rest of the conversation without thinking.

Entity linking is software doing that sorting. Having spotted a name in a document, it decides exactly which real person, place or company is meant and ties the mention to one entry in a big reference list, rather like a card catalogue. This is what lets a news tracker count every story about one firm even when the name is written five different ways, and lets an assistant answer a follow-up question about the right person.