LegalSeg: Unlocking the Structure of Indian Legal Judgments Through Rhetorical Role Classification

Shubham Kumar Nigam, Tanmay Dubey, Govind Sharma, Noel Shallum, Kripabandhu Ghosh +1 more
2/9/2025
cs.CLcs.AIcs.IR

No official code found. Best implementation: ShubhamKumarNigam/LegalSeg (6 stars, Apache-2.0, last commit 2025-06-19). 1 more below.

Abstract

In this paper, we address the task of semantic segmentation of legal documents through rhetorical role classification, with a focus on Indian legal judgments. We introduce LegalSeg, the largest annotated dataset for this task, comprising over 7,000 documents and 1.4 million sentences, labeled with 7 rhetorical roles. To benchmark performance, we evaluate multiple state-of-the-art models, including Hierarchical BiLSTM-CRF, TransformerOverInLegalBERT (ToInLegalBERT), Graph Neural Networks (GNNs), and Role-Aware Transformers, alongside an exploratory RhetoricLLaMA, an instruction-tuned large language model. Our results demonstrate that models incorporating broader context, structural relationships, and sequential sentence information outperform those relying solely on sentence-level features. Additionally, we conducted experiments using surrounding context and predicted or actual labels of neighboring sentences to assess their impact on classification accuracy. Despite these advancements, challenges persist in distinguishing between closely related roles and addressing class imbalance. Our work underscores the potential of advanced techniques for improving legal document understanding and sets a strong foundation for future research in legal NLP.

View on arXivView PDF

Code Implementations(2)

LegalSeg: Unlocking the Structure of Indian Legal Judgements Through Rhetorical Role classification

01CSS, HTMLAug 21, 20258 months ago
Apache-2.0

LegalSeg: Unlocking the Structure of Indian Legal Judgments Through Rhetorical Role Classification

60PythonOct 10, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{nigam2025legalseg,
  title  = {LegalSeg: Unlocking the Structure of Indian Legal Judgments Through Rhetorical Role Classification},
  author = {Shubham Kumar Nigam and Tanmay Dubey and Govind Sharma and Noel Shallum and Kripabandhu Ghosh and Arnab Bhattacharya},
  year   = {2025},
  eprint = {2502.05836},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.05836v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.05836.svg)](https://codeofpaper.com/paper/2502.05836)

Discussion