# Rozpoznawanie nazw w tekstach prawnych

EN: **Legal named entity recognition** · id `legalner` · aliases: legal NER, L-NER, legal entity recognition, named entity recognition in judgments, NER prawniczy

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [AI w prawie](https://aiatlasgraph.com/t/legalai.md) › [Przetwarzanie tekstów prawnych](https://aiatlasgraph.com/t/legalnlp.md) › Rozpoznawanie nazw w tekstach prawnych

## Description

- PL: Oznaczanie w tekstach prawnych encji o drobnych klasach domenowych, np. sąd, sędzia, strona, przepis, precedens i sygnatura.
- EN: Tagging entities in legal texts with fine-grained domain classes such as court, judge, party, provision, precedent and case number.

## In one sentence

- PL: Program zaznacza w wyroku, kto jest sędzią, kto stroną, jaki sąd orzekał i na które przepisy oraz wcześniejsze sprawy się powołano.
- EN: Software marks in a ruling who the judge is, who the parties are, which court decided, and which provisions and earlier cases were cited.

## Problem it solves

- PL: Żeby przeszukiwać i porównywać tysiące wyroków, trzeba wiedzieć, kto w nich występuje i co cytują, a ręczne oznaczanie trwałoby latami.
- EN: To search and compare thousands of rulings you must know who appears in them and what they cite; tagging by hand would take years.

## What it does

- PL: Jak zakreślacze w kilku kolorach: osobny dla sądu, osobny dla stron, osobny dla przepisów, tyle że nakładane w ułamku sekundy.
- EN: Like highlighters in several colours, one for the court, one for the parties, one for the provisions, only applied in a split second.

## Everyday example

- PL: Wyszukiwarka orzeczeń pozwala odfiltrować wszystkie wyroki jednego sędziego, w których powołano ten sam artykuł kodeksu.
- EN: A case-law search engine lets you filter all rulings by one judge that cite the same article of the code.

## This concerns you if you…

- PL: szukasz wyroków danego sądu lub sędziego
- PL: budujesz bazę orzeczeń z filtrami
- PL: przygotowujesz dane do anonimizacji
- EN: look for rulings by a given court or judge
- EN: build a case-law database with filters
- EN: prepare data for anonymisation

## Keywords

LegalEval L-NER · German LER dataset · BIO tagging · spaCy · RoBERTa · CoNLL format · citation extraction · Lynx project

## How it works

- PL: Zadanie traktuje się jak oznaczanie sekwencji tokenów (schemat BIO lub parser przejść) z enkoderem transformerowym. W odróżnieniu od ogólnego NER klasy rozróżniają role procesowe (sędzia, strona, świadek) i odwołania (przepis, precedens, sygnatura). Wynik zasila wyszukiwanie, grafy cytowań i anonimizację.
- EN: The task is treated as token sequence labelling (BIO scheme or a transition-based parser) with a transformer encoder. Unlike general NER, the classes distinguish procedural roles (judge, party, witness) and references (provision, precedent, case number). The output feeds search, citation graphs and anonymisation.

## Limits

- PL: Schematy klas zależą od jurysdykcji i słabo przenoszą się między krajami. Ta sama osoba bywa stroną lub świadkiem zależnie od kontekstu całego dokumentu. Publicznych zbiorów jest mało: m.in. angielskojęzyczne wyroki indyjskie i niemieckie orzeczenia federalne.
- EN: Class schemes depend on the jurisdiction and transfer poorly between countries. The same person may be a party or a witness depending on the whole document's context. Public datasets are few, among them English-language Indian judgments and German federal court decisions.

## Key terms

- PL: **BIO**: Zapis etykiet: początek encji, jej ciąg dalszy albo token poza encją.
- PL: **precedens**: Wcześniejsze orzeczenie przywołane w uzasadnieniu.
- PL: **sygnatura**: Unikalny numer sprawy w sądzie.
- EN: **BIO**: Label scheme: beginning of an entity, inside it, or outside any entity.
- EN: **precedent**: An earlier ruling cited in the reasoning.
- EN: **case number**: A case's unique identifier in a court.

## Know first

- [Wydobywanie informacji z tekstu (nazwy własne, relacje) (Information extraction (named entities and relations))](https://aiatlasgraph.com/t/infoextraction.md)

## Related topics

Untyped, symmetric "see also" links.

- [Anonimizacja orzeczeń sądowych (Anonymisation of court decisions)](https://aiatlasgraph.com/t/courtanonymization.md)
- [Rozpoznawanie nazw własnych (NER) (Named entity recognition (NER))](https://aiatlasgraph.com/t/ner.md)
- [Wydobywanie informacji z tekstu (nazwy własne, relacje) (Information extraction (named entities and relations))](https://aiatlasgraph.com/t/infoextraction.md)

## Sources

- [SemEval 2023 Task 6: LegalEval – Understanding Legal Texts](<https://arxiv.org/abs/2304.09548>) `modi-semeval2023-legaleval` · by Ashutosh Modi i in.
- [Named Entity Recognition in Indian court judgments](<https://arxiv.org/abs/2211.03442>) `kalamkar-indian-legal-ner-2022` · by Prathamesh Kalamkar, Astha Agarwal, Aman Tiwari, Smita Gupta, Saurabh Karn, Vivek Raghavan
- [A Dataset of German Legal Documents for Named Entity Recognition](<https://arxiv.org/abs/2003.13016>) `leitner-german-ler-2020` · by Elena Leitner, Georg Rehm, Julián Moreno-Schneider

---

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