# Podział wyroku na części (role retoryczne)

EN: **Rhetorical role labelling of court judgments** · id `rhetoricalroles` · aliases: rhetorical role labelling, rhetorical roles, judgment structuring, legal document segmentation, RR labelling, strukturyzacja wyroków

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) › Podział wyroku na części (role retoryczne)

## Description

- PL: Klasyfikacja każdego zdania wyroku do funkcjonalnej roli, np. fakty, argumenty stron, analiza, ratio decidendi i rozstrzygnięcie.
- EN: Classifying each sentence of a judgment into a functional role such as facts, party arguments, analysis, ratio decidendi and decision.

## In one sentence

- PL: Program dzieli długi wyrok na części: fakty, argumenty stron, analizę sądu, powody decyzji i samo rozstrzygnięcie.
- EN: Software splits a long ruling into parts: the facts, each side's arguments, the court's analysis, the reasons for the decision and the decision itself.

## Problem it solves

- PL: Wyrok bywa ciągłym tekstem na dziesiątki stron i trudno szybko znaleźć, co sąd sam ustalił, a co tylko streścił za stronami.
- EN: A ruling can run to dozens of pages, and it is hard to see quickly what the court found itself and what it merely relayed.

## What it does

- PL: Jak spis treści doklejony do książki, która go nie miała: każde zdanie dostaje etykietę rozdziału, do którego należy.
- EN: Like a table of contents added to a book that never had one: every sentence gets the label of the chapter it belongs to.

## Everyday example

- PL: Aplikant otwiera wyrok i jednym kliknięciem przeskakuje do fragmentu, w którym sąd wyjaśnia, dlaczego oddalił apelację.
- EN: A trainee lawyer opens a ruling and jumps with one click to the passage where the court explains why it dismissed the appeal.

## This concerns you if you…

- PL: czytasz długie wyroki i szukasz sedna
- PL: budujesz streszczenia lub wyszukiwanie orzeczeń
- EN: read long rulings and look for the gist
- EN: build summaries or case-law search

## Keywords

LegalEval rhetorical roles · SciBERT-HSLN · hierarchical sequential labelling · CRF · BiLSTM · sentence classification · ratio decidendi

## How it works

- PL: To klasyfikacja sekwencji zdań: etykieta zdania zależy od sąsiadów, więc stosuje się hierarchiczne enkodery (embedding zdania z modelu typu BERT, warstwa kontekstu, np. BiLSTM) zakończone warstwą CRF. Typowy schemat ma kilkanaście ról, m.in. preambułę, fakty, kwestię prawną, argumenty stron, analizę, przywołane precedensy, ratio i rozstrzygnięcie.
- EN: It is sentence sequence classification: a sentence's label depends on its neighbours, so hierarchical encoders are used (a sentence embedding from a BERT-style model, a context layer such as a BiLSTM) topped with a CRF layer. A typical scheme has about a dozen roles, including preamble, facts, issue, party arguments, analysis, cited precedents, ratio and decision.

## Limits

- PL: Granice ról są subiektywne: zgodność anotatorów w referencyjnym korpusie była tylko umiarkowana. Najtrudniejsze są rzadkie role i ratio decidendi, mylona z analizą. Wyniki spadają na wyrokach spoza domeny treningowej, a korpusy obejmują głównie angielskojęzyczne wyroki indyjskie.
- EN: Role boundaries are subjective: annotator agreement in the reference corpus was only moderate. Rare roles and the ratio decidendi, which gets confused with analysis, are hardest. Scores drop on out-of-domain rulings, and corpora mainly cover English-language Indian judgments.

## Key terms

- PL: **ratio decidendi**: Zasadnicze powody, dla których sąd rozstrzygnął tak, a nie inaczej.
- PL: **CRF**: Warstwa wybierająca najbardziej spójny ciąg etykiet dla kolejnych zdań.
- PL: **Fleiss' kappa**: Miara zgodności wielu anotatorów ponad przypadkową.
- EN: **ratio decidendi**: The essential reasons why the court decided the way it did.
- EN: **CRF**: A layer that picks the most consistent label sequence for consecutive sentences.
- EN: **Fleiss' kappa**: A measure of agreement among several annotators beyond chance.

## Know first

- [Klasyfikacja tekstu i analiza sentymentu (Text classification and sentiment analysis)](https://aiatlasgraph.com/t/textclassification.md)

## Related topics

Untyped, symmetric "see also" links.

- [Streszczanie wyroków i aktów prawnych (Legal document summarisation)](https://aiatlasgraph.com/t/legalsummarization.md)

## Sources

- [SemEval 2023 Task 6: LegalEval – Understanding Legal Texts](<https://arxiv.org/abs/2304.09548>) `modi-semeval2023-legaleval` · by Ashutosh Modi i in.
- [Corpus for Automatic Structuring of Legal Documents](<https://arxiv.org/abs/2201.13125>) `kalamkar-legal-structuring-2022` · by Prathamesh Kalamkar, Aman Tiwari, Astha Agarwal, Saurabh Karn, Smita Gupta, Vivek Raghavan, Ashutosh Modi

---

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