Downloads · 30 days
9
8% of all-time downloads
Tanishq77/legal-classifier-v1
legal-classifier-v1 is a text classification model from Tanishq77. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of the Legal-Longformer-Base-4096, developed at the Pune Institute of Computer Technology (PICT) as part of the research paper: "Intelligent Legal Document Analysis using NLP".
Downloads · 30 days
9
8% of all-time downloads
All-time downloads
111
Public
Parameters
149M
1.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors595 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of the Legal-Longformer-Base-4096, developed at the Pune Institute of Computer Technology (PICT) as part of the research paper: "Intelligent Legal Document Analysis using NLP".
The framework leverages NLP and Information Retrieval (IR) to classify unstructured documents into three primary domains: Criminal Law, Contract Law, and Education Law.
Traditional NLP often struggles with the complexity of legal discourse and domain-specific jargon. This model addresses these challenges by focusing on a tractable subset of twelve small-scale laws. It utilizes the Vector Space Model (VSM) for clause-level representation and the Longformer's sliding window attention to process documents spanning thousands of tokens.
The model is optimized to categorize legal clauses into the following twelve sub-domains:
The classifier is designed to support several high-level analytical components described in the paper:
The training utilized a balanced dataset of 30,000 legal rows (10,000 per primary domain).
The model achieved a Global Training Loss of 0.084, demonstrating high accuracy in differentiating between the structured yet dense terminologies of Criminal, Contract, and Education law.
from transformers import pipeline
# Load the fine-tuned legal classifier
classifier = pipeline("text-classification", model="Tanishq77/legal-classifier-v1")
# Test on a Contract Law clause
text = "The lessee shall be responsible for all utility payments during the lease term."
result = classifier(text)
print(f"Domain: {result[0]['label']} | Confidence: {result[0]['score']:.4f}")
As outlined in the research methodology, this model is intended for educational and analytical purposes only. It is not a substitute for professional legal advice. The framework assumes human oversight at every stage, with legal experts expected to validate outputs to prevent misinterpretation and misuse.
If you use this model or refer to the intelligent legal document analysis framework in your research, please cite it as follows:
@article{shinde2026intelligent,
title={Intelligent Legal Document Analysis using NLP},
author={Shinde, Tanishq and Sonawane, Nilakshi and Joshi, Sarang and Jangle, Mansi and Madavi, Vaishnavi},
journal={Dept. of Computer Engineering, Pune Institute of Computer Technology},
year={2026}
}