Related Experiment Video
Updated: May 15, 2025

A Metadata Extraction Approach for Clinical Case Reports to Enable Advanced Understanding of Biomedical Concepts
Published on: September 20, 2018
Analysing similarities between legal court documents using natural language processing approaches based on
Raphael Souza de Oliveira1,2, Erick Giovani Sperandio Nascimento2,3
1TRT5 - Regional Labour Court of the 5th Region, Salvador, Bahia, Brazil.
Artificial Intelligence (AI) and Natural Language Processing (NLP) accelerate legal case processing. Transformer models, like LlaMA, show superior performance in detecting legal document similarity in Brazilian judicial proceedings.
Area of Science:
- Computational Linguistics
- Artificial Intelligence in Law
- Natural Language Processing
Background:
- Judicial systems face challenges with large volumes of legal documents.
- Natural Language Processing (NLP) offers potential solutions for managing legal data.
- Transformer-based AI models have shown promise in various NLP tasks.
Purpose of the Study:
- To evaluate transformer-based NLP models for detecting similarity among judicial documents.
- To compare the performance of different NLP techniques in the Brazilian legal context.
- To investigate the application of AI in expediting judicial proceedings.
Main Methods:
- Employed eight NLP techniques, focusing on transformer architectures (BERT, GPT-2, RoBERTa, LlaMA).
- Pre-trained models on Brazilian Portuguese corpora and fine-tuned them on 210,000 legal cases.
- Generated document vector representations using embeddings and evaluated similarity via cosine distance.
Main Results:
- Transformer-based models significantly outperformed traditional NLP techniques.
- The LlaMA model, fine-tuned for the legal domain, achieved the highest accuracy in document similarity detection.
- Demonstrated a robust methodology for analyzing large legal document datasets.
Conclusions:
- Transformer models are highly effective for NLP tasks in the legal sector, particularly for document similarity.
- Fine-tuning models like LlaMA for specific domains, such as Brazilian law, enhances performance.
- This research advances AI applications in law and supports Sustainable Development Goals.
Related Concept Videos
Legal Guidelines for Documentation
Sources of Law
Constitutional law is foundational, deriving from federal and state constitutions, and...
Source Transformation
It is essential to note that...
Improving Translational Accuracy
Extraction: Advanced Methods
Methods of Documentation II: POMR

