MEL: Legal Spanish Language Model
Authors:
David Betancur Sánchez,
Nuria Aldama García,
Álvaro Barbero Jiménez,
Marta Guerrero Nieto,
Patricia Marsà Morales,
Nicolás Serrano Salas,
Carlos García Hernán,
Pablo Haya Coll,
Elena Montiel Ponsoda,
Pablo Calleja Ibáñez
Abstract:
Legal texts, characterized by complex and specialized terminology, present a significant challenge for Language Models. Adding an underrepresented language, such as Spanish, to the mix makes it even more challenging. While pre-trained models like XLM-RoBERTa have shown capabilities in handling multilingual corpora, their performance on domain specific documents remains underexplored. This paper pr…
▽ More
Legal texts, characterized by complex and specialized terminology, present a significant challenge for Language Models. Adding an underrepresented language, such as Spanish, to the mix makes it even more challenging. While pre-trained models like XLM-RoBERTa have shown capabilities in handling multilingual corpora, their performance on domain specific documents remains underexplored. This paper presents the development and evaluation of MEL, a legal language model based on XLM-RoBERTa-large, fine-tuned on legal documents such as BOE (Boletín Oficial del Estado, the Spanish oficial report of laws) and congress texts. We detail the data collection, processing, training, and evaluation processes. Evaluation benchmarks show a significant improvement over baseline models in understanding the legal Spanish language. We also present case studies demonstrating the model's application to new legal texts, highlighting its potential to perform top results over different NLP tasks.
△ Less
Submitted 27 January, 2025;
originally announced January 2025.
3CEL: A corpus of legal Spanish contract clauses
Authors:
Nuria Aldama García,
Patricia Marsà Morales,
David Betancur Sánchez,
Álvaro Barbero Jiménez,
Marta Guerrero Nieto,
Pablo Haya Coll,
Patricia Martín Chozas,
Elena Montiel Ponsoda
Abstract:
Legal corpora for Natural Language Processing (NLP) are valuable and scarce resources in languages like Spanish due to two main reasons: data accessibility and legal expert knowledge availability. INESData 2024 is a European Union funded project lead by the Universidad Politécnica de Madrid (UPM) and developed by Instituto de Ingeniería del Conocimiento (IIC) to create a series of state-of-the-art…
▽ More
Legal corpora for Natural Language Processing (NLP) are valuable and scarce resources in languages like Spanish due to two main reasons: data accessibility and legal expert knowledge availability. INESData 2024 is a European Union funded project lead by the Universidad Politécnica de Madrid (UPM) and developed by Instituto de Ingeniería del Conocimiento (IIC) to create a series of state-of-the-art NLP resources applied to the legal/administrative domain in Spanish. The goal of this paper is to present the Corpus of Legal Spanish Contract Clauses (3CEL), which is a contract information extraction corpus developed within the framework of INESData 2024. 3CEL contains 373 manually annotated tenders using 19 defined categories (4 782 total tags) that identify key information for contract understanding and reviewing.
△ Less
Submitted 27 January, 2025;
originally announced January 2025.