NER in the courtroom: A data-driven framework for legal entity extraction

General-purpose Named Entity Recognition (NER) models struggle with domain-specific challenges, particularly in the legal sector, where complex syntax, specialized terminology, and privacy concerns pose significant obstacles. This paper presents a novel data-driven two-stage framework that leverages Large Language Models (LLMs) fine-tuned for legal applications to enhance NER for criminal process documents. Our contributions include: (i) the design of a novel framework for structured entity extraction in legal texts, (ii) the definition of an enhanced ontology adapted to criminal law, and (iii) a comprehensive evaluation of the framework on a real-world dataset. As a side contribution of the paper, we extend the renowned OntoNotes5 ontology by integrating new domain-specific entities tailored to criminal law. To evaluate our approach, we construct and manually annotate a real-world dataset comprising over 100 criminal judgments from four Italian courts, sourced from the Italian Antimafia and Anti-terrorism National Directorate (Direzione Nazionale Antimafia e Antiterrorismo — DNAA). Experimental results demonstrate the effectiveness of fine-tuned LLMs in accurately identifying legal entities. Among the evaluated models, LLaMA-3.2-1B demonstrates the lowest training time, while LLaMA-2.7B achieves the fastest inference time. In terms of predictive performance, LLaMA-2.7B and Vicuna-7B consistently yield the highest accuracy scores across evaluation metrics.

Authors

Institutions

Publication Details

Journal
Information Processing & Management
Published
2026-09-12
DOI
https://doi.org/10.1016/j.ipm.2026.105132
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

NER in the courtroom: A data-driven framework for legal entity extraction

Simon Pietro Romano, Giancarlo Sperlí, Andrea Vignali, Mario Varlese
Information Processing & Management
Topic Modeling
article

NER in the courtroom: A data-driven framework for legal entity extraction

Simon Pietro Romano, Giancarlo Sperlí, Andrea Vignali, Mario Varlese
article en

Abstract

General-purpose Named Entity Recognition (NER) models struggle with domain-specific challenges, particularly in the legal sector, where complex syntax, specialized terminology, and privacy concerns pose significant obstacles. This paper presents a novel data-driven two-stage framework that leverages Large Language Models (LLMs) fine-tuned for legal applications to enhance NER for criminal process documents. Our contributions include: (i) the design of a novel framework for structured entity extraction in legal texts, (ii) the definition of an enhanced ontology adapted to criminal law, and (iii) a comprehensive evaluation of the framework on a real-world dataset. As a side contribution of the paper, we extend the renowned OntoNotes5 ontology by integrating new domain-specific entities tailored to criminal law. To evaluate our approach, we construct and manually annotate a real-world dataset comprising over 100 criminal judgments from four Italian courts, sourced from the Italian Antimafia and Anti-terrorism National Directorate (Direzione Nazionale Antimafia e Antiterrorismo — DNAA). Experimental results demonstrate the effectiveness of fine-tuned LLMs in accurately identifying legal entities. Among the evaluated models, LLaMA-3.2-1B demonstrates the lowest training time, while LLaMA-2.7B achieves the fastest inference time. In terms of predictive performance, LLaMA-2.7B and Vicuna-7B consistently yield the highest accuracy scores across evaluation metrics.

Information Processing & ManagementVol. 64(2)
University of Naples Federico II (IT)
European Commission
Peace, Justice and strong institutions
Openalex Percentile: Top 8%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.