Downloads · 30 days
0
sbasu2512/legal-router
legal-router is a machine learning model from sbasu2512. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-nd-4.0.
This repository hosts the dataset used to fine-tune a text classification model under the LawAI project. The baseline run achieved highly optimized classification scores using a modern encoder architecture.
Downloads · 30 days
0
Access
Public
Updated Jun 27, 2026
Repo size
740 MB
Likes
0
Public
Click a slice to open those files.
.safetensors738 MB · 99%
From the Hugging Face model README
This repository hosts the dataset used to fine-tune a text classification model under the LawAI project. The baseline run achieved highly optimized classification scores using a modern encoder architecture.
The dataset consists of structured legal text samples mapped to classification labels across multiple categories.
['text', 'label']18 or greater).| Column Name | Data Type | Description |
|---|---|---|
text | string | The raw legal text segment or case document excerpt. |
label | int64 | The class identifier mapping to the legal category or provision. |
The dataset was validated by fine-tuning a microsoft/deberta-v3-base topology (DebertaV2ForSequenceClassification) using a linear learning rate warmup and decay over 6 epochs.
The model reached optimal generalization convergence within the first epoch, remaining highly stable with no signs of overfitting throughout the training cycle:
0.992550.992080.0116You can load this dataset directly via the Hugging Face datasets library:
from datasets import load_dataset
dataset = load_dataset("YOUR_USERNAME/YOUR_DATASET_NAME")
# Inspecting a split
print(dataset['train'][0])