🧾 Legal Document Summarizer - BART Transformer
Summarizing long and complex legal documents into short, concise summaries using Transformers.
📝 Model Description
This model is a fine-tuned version of facebook/bart-base on a custom legal document dataset.
It is trained to summarize Indian and UK legal texts.
since there is low context size of bert and less legal data please insert text below then 1024 characters
- Model Type: Sequence-to-Sequence
- Task: Summarization of legal documents
- Framework: PyTorch + Hugging Face Transformers
🔗 Hosted Model
Try it here on Hugging Face:
https://huggingface.co/sanatann/legal-summarizer-bart
🚀 Usage Example
from transformers import pipeline
summarizer = pipeline("summarization", model="sanatann/legal-summarizer-bart")
text = "Your long legal document text here... (but should be under 1024 characters)"
summary = summarizer(text)
print(summary)