Phase 05: NLP: Foundations to Advanced

Coreference Resolution

"She called him. He did not answer. The doctor was at lunch." Three references to two people and nobody is named. Coreference resolution figures out who is who. Extract every mention of Apple Inc. from a 300-word article. Easy when the article says "Apple." Hard when it says "the company," "they," "Cupertino's technology giant," or "Jobs's firm." Without resolving these mentions to the same entity, your NER pipeline misses 60-80% of the mentions. Coreference resolution links every expression that refers to the same real-world entity into one cluster. It is the glue between surface-level NLP (NER, parsing) and downstream semantics (IE, QA, summarization, KG). Why it matters in 2026: Summarization: "The CEO announced..." vs "Tim Cook announced..." — the summary should name the CEO. Question answering: "Who did she call?" requires resolving "she.". Information extraction: a knowledge graph with "PER1 founded Apple" and "Jobs founded Apple" as separate entries is wrong. Multi-document IE: merging mentions across articles about the same event is cross-document coreference. Coreference clustering: mentions → entities The task. Input: a document. Output: a clustering of mentions (spans) where each cluster refers to one entity. Mention types. Named entity. "Tim Cook". Nominal. "the CEO", "the company". Pronominal. "he", "she", "they", "it". Appositive. "Tim Cook, Apple's CEO,". Architectures. Rule-based (Hobbs, 1978). Syntactic-tree-based pronoun resolution using grammar rules. Good baseline.…

Coreference Resolution: "She called him. He did not answer. The doctor was at lunch." Three references to two people and nobody is named. Coreference…

This free lesson is part of the AI Engineering from Scratch curriculum. Read the full explanation, run the lesson code, and verify the result in the interactive reader or from the repository source.

Browse the complete course catalog or open this lesson on GitHub.