Downloads · 30 days
19
25% of all-time downloads
RamshaAnwar/mt5-billsum-summarizer
mt5-billsum-summarizer is a summarization model from RamshaAnwar. Use it when you need a shorter version of a longer text. The card lists the license as apache-2.0.
This model is a fine-tuned version of google/mt5-small trained on the BillSum dataset. It is designed to take complex, lengthy US Congressional Bills and legal text, and condense them into highly readable 2-3 sentence…
Downloads · 30 days
19
25% of all-time downloads
All-time downloads
76
Public
Parameters
556M
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 99%
From the Hugging Face model README
This model is a fine-tuned version of google/mt5-small trained on the BillSum dataset. It is designed to take complex, lengthy US Congressional Bills and legal text, and condense them into highly readable 2-3 sentence summaries.
This model is specifically trained to handle the dense, specialized vocabulary of legal and government documents. It is best used for quickly extracting the core legislative intent from long political texts.
You can easily use this model in your own applications via the Hugging Face transformers library:
from transformers import pipeline
# 1. Initialize the summarization pipeline
summarizer = pipeline("summarization", model="Ramsha-Anwar/mt5-billsum-summarizer")
# 2. Paste your legal text
bill_text = """
To amend the Internal Revenue Code of 1986 to provide a tax credit for
expenses for household and elder care services necessary for gainful employment.
"""
# 3. Generate the summary
summary = summarizer(bill_text, max_length=128, min_length=30)
print(summary[0]['summary_text'])