Downloads · 30 days
4
0% of all-time downloads
sanatann/legal-summarizer-bart
legal-summarizer-bart is a summarization model from sanatann. Use it when you need a shorter version of a longer text. It is set up for transformers. The card lists the license as mit.
Summarizing long and complex legal documents into short, concise summaries using Transformers.
Downloads · 30 days
4
0% of all-time downloads
All-time downloads
806
Public
Parameters
406M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
From the Hugging Face model README
Summarizing long and complex legal documents into short, concise summaries using Transformers.
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
Try it here on Hugging Face:
https://huggingface.co/sanatann/legal-summarizer-bart
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)