# Wydobywanie relacji między encjami

EN: **Relation extraction** · id `relationextraction` · aliases: relation extraction, relation classification, relation detection, ekstrakcja relacji

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Język, obraz, audio](https://aiatlasgraph.com/t/modalities.md) › [Język naturalny](https://aiatlasgraph.com/t/nlp.md) › [Wydobywanie informacji z tekstu (nazwy własne, relacje)](https://aiatlasgraph.com/t/infoextraction.md) › Wydobywanie relacji między encjami

## Description

- PL: Rozpoznawanie typowanych relacji między parami encji w tekście i zapis ich jako trójek (podmiot, relacja, obiekt).
- EN: Identifying typed relations between entity pairs in text and recording them as (subject, relation, object) triples.

## In one sentence

- PL: Program czyta zdanie i ustala, jak łączą się występujące w nim osoby, firmy i miejsca.
- EN: Software reads a sentence and works out how the people, companies and places in it are connected.

## Problem it solves

- PL: Sama lista nazwisk niewiele mówi — liczy się, kto dla kogo pracuje, kto co kupił i co gdzie leży.
- EN: A bare list of names says little; what matters is who works for whom, who bought what and what lies where.

## What it does

- PL: Rysuje strzałki między zaznaczonymi nazwami i podpisuje każdą: „pracuje w”, „przejął”, „urodził się w”.
- EN: It draws arrows between marked names and labels each one: 'works at', 'acquired', 'born in'.

## Everyday example

- PL: Z serwisu z wiadomościami gospodarczymi powstaje tabela: która firma przejęła którą i kiedy.
- EN: Business news turns into a table showing which company acquired which, and when.

## This concerns you if you…

- PL: budujesz bazę wiedzy z artykułów
- PL: śledzisz powiązania między firmami lub osobami
- PL: chcesz zadawać pytania o fakty z tekstów
- EN: build a knowledge base from articles
- EN: track links between companies or people
- EN: want to query facts found in texts

## Keywords

relation classification · joint entity and relation extraction · distant supervision · document-level relation extraction · TACRED · DocRED · open information extraction · knowledge graph construction

## How it works

- PL: Model koduje zdanie lub dokument z zaznaczonymi encjami i klasyfikuje relację dla każdej pary albo wspólnie wyodrębnia encje i trójki. Uczy się z ręcznych anotacji, nadzoru odległego z baz wiedzy lub generuje trójki przez LLM według schematu.
- EN: The model encodes a sentence or document with marked entities and classifies the relation for each pair, or jointly extracts entities and triples. It learns from manual labels, distant supervision from knowledge bases, or has an LLM generate schema-bound triples.

## Limits

- PL: Relacje rozpięte na wiele zdań i wyrażone pośrednio są trudne. Nadzór odległy wprowadza szum, a zamknięta lista typów relacji nie obejmuje nowych powiązań.
- EN: Relations spanning several sentences or stated indirectly are hard. Distant supervision adds noise, and a closed relation set misses new kinds of links.

## Key terms

- PL: **trójka**: Zapis faktu jako podmiot, relacja i obiekt.
- PL: **distant supervision**: Automatyczne etykiety z bazy wiedzy dopasowanej do tekstu.
- PL: **document-level RE**: Relacje między encjami z różnych zdań dokumentu.
- EN: **triple**: A fact recorded as subject, relation and object.
- EN: **distant supervision**: Automatic labels from a knowledge base aligned with text.
- EN: **document-level RE**: Relations between entities found in different sentences.

## Know first

- [Rozpoznawanie nazw własnych (NER) (Named entity recognition (NER))](https://aiatlasgraph.com/t/ner.md)

## Related topics

Untyped, symmetric "see also" links.

- [Grafy wiedzy (Knowledge graphs)](https://aiatlasgraph.com/t/kgraphs.md)

## Sources

- [A Comprehensive Survey on Relation Extraction: Recent Advances and New Frontiers](<https://arxiv.org/abs/2306.02051>) `zhao-2023-relation-extraction-survey` · by Xiaoyan Zhao, Yang Deng, Min Yang, Lingzhi Wang, Rui Zhang, Hong Cheng, Wai Lam, Ying Shen, Ruifeng Xu

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/relationextraction · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
