LegNER: a domain-adapted transformer for legal named entity recognition and text anonymization
Ioannis Karamitsos, Nikolaos Roufas, Khalil Al-Hussaeni, Andreas Kanavos
Rochester Institute of Technology - Dubai · Ionian University
Key points
From the paper's conclusion- Taken together, these results establish LegNER as a reliable and effective solution for high-precision entity recognition and anonymization in compliance-sensitive legal workflows.
Abstract
The increasing demand for scalable and privacy-preserving processing of legal documents has intensified the need for accurate Named Entity Recognition (NER) systems tailored to the legal domain. In this work, we introduce LegNER , a domain-adapted transformer model designed for both legal NER and text anonymization. The model is trained on a corpus of 1,542 manually annotated court cases and enriched with an extended legal vocabulary, enabling robust recognition of six critical entity types, including PERSON , ORGANIZATION , LAW , and CASE_REFERENCE . Built on BERT-base and enhanced through domain-specific pretraining and span-level supervision, LegNER consistently outperforms established legal NER baselines. Experimental results demonstrate significant gains in accuracy (99%), F1 score (over 99%), and inference efficiency (processing more than 12 documents per second), confirming both its precision and scalability. Beyond quantitative improvements, qualitative evaluation highlights LegNERs ability to generate coherent anonymized outputs, a crucial requirement for GDPR-compliant redaction and automated legal analytics. Taken together, these results establish LegNER as a reliable and effective solution for high-precision entity recognition and anonymization in compliance-sensitive legal workflows.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Evaluating LLMs for named entity recognition: a cost-benefit analysis in the legal domainKnowledge and Information Systems · 2026
- Deep-Learning-Based Named Entity Recognition for Turkish Industrial Property Law: Dataset Creation and Parameter OptimizationApplied Sciences · 2026
- Natural Language Processing for the Legal Domain: A Survey of Tasks, Datasets, Models, and ChallengesACM Computing Surveys · 2025
- Evaluating knowledge-based approaches for legal text analysis: A benchmark studyComputer law & security review · 2026
- GANDR: Claim Auditing for Verifiable Legal Answer GenerationarXiv · 2026
- A Comprehensive Survey on Legal Summarization: Challenges and Future DirectionsACM Computing Surveys · 2025