What is relation extraction?

Relation extraction is the information extraction task of finding semantic relations between pairs of entities in text, such as a person being employed by an organisation or a place lying in a region. The resulting facts populate knowledge bases and knowledge graphs.

Unlike named entity recognition, which finds names of people, organisations and places, relation extraction determines how those entities connect. Document-level datasets therefore annotate both entities and relations.

Topic
Natural language processing and Turkish
Also known as
Relation classification
Origin
NIST ACE evaluation corpora, 2003 and 2004; 2009 distant supervision method

How relation extraction works

  1. Supervised systems learn relation types from sentences hand-labelled for entities and relations.
  2. Distant supervision takes entity pairs from a knowledge base and trains on sentences mentioning them.
  3. At document level relations span several sentences and the model combines the whole document.
  4. Generative large language models produce relations from prompts and examples.

Commonly confused terms

TermHow it differs
Entity linkingEntity linking maps an entity mention in text to the correct record in a knowledge base. Relation extraction determines the type of link between two entities; together they feed knowledge graphs.

Why relation extraction matters for on-premises AI

Labelled data is costly and classifiers trained on one corpus lean towards its domain. A 2009 distant supervision method therefore turned to unlabelled text and extracted 10,000 instances of 102 relations at 67.6% precision. A 2017 study, noting that populating knowledge bases from documents had improved frustratingly slowly, released a dataset of 119,474 examples.

ON-PREMISES EXAMPLE

An insurer extracts relations between policyholders, vehicles, accident sites and repair shops from free-text claim notes. Merged into a knowledge graph, they reveal a repair shop linked to recurring people across claims; low-confidence relations need expert approval before entering the graph.

Common questions

How does relation extraction differ from named entity recognition?

Entity recognition finds names in text and their types. Relation extraction determines the link between those entities, such as a person working for an organisation.

What is distant supervision?

It is a training method that uses relations already stored in a knowledge base instead of hand labels. Sentences containing an entity pair related in the knowledge base become training examples automatically, so no labelled corpus is needed.

How have large language models changed relation extraction?

Generative models can produce relations from a prompt; a 2023 survey groups this work under generative information extraction. Structured output can keep the result aligned with a schema.

Sources

In the glossary: Glossary, R to Z

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.