Downloads · 30 days
15
7% of all-time downloads
ashaduzzaman/t5-small-finetuned-billsum
t5-small-finetuned-billsum is a summarization model from ashaduzzaman. Use it when you need a shorter version of a longer text. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
15
7% of all-time downloads
All-time downloads
209
Public
Parameters
60.5M
485 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors242 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of google/t5-small on a custom dataset related to legislative bill summarization. It is optimized for generating concise summaries of legislative bills and other similar documents.
This model leverages the T5 (Text-to-Text Transfer Transformer) architecture, which treats all NLP tasks as text-to-text tasks, enabling it to handle a wide range of natural language understanding and generation tasks. The T5-small version is a smaller variant of the T5 model, making it more computationally efficient while still delivering reasonable performance. This fine-tuned model is specifically trained to summarize legislative bills, capturing essential details and providing concise summaries.
Intended Uses:
Limitations:
The model was fine-tuned using a dataset derived from legislative bills. The specific dataset used for training is not explicitly mentioned, but it likely consists of publicly available legislative texts. The evaluation metrics (Rouge scores) indicate the model's performance on generating summaries.
The model achieved the following results on the evaluation set:
These scores suggest moderate summarization performance, with room for improvement in capturing more comprehensive content.
The model was trained using the following hyperparameters and setup:
| Training Loss | Epoch | Step | Validation Loss | ROUGE-1 | ROUGE-2 | ROUGE-L | ROUGE-Lsum | Gen Len |
|---|---|---|---|---|---|---|---|---|
| No log | 1.0 | 62 | 2.6711 | 0.1308 | 0.0445 | 0.1107 | 0.1109 | 19.0 |
| No log | 2.0 | 124 | 2.5761 | 0.1338 | 0.0483 | 0.1137 | 0.1137 | 19.0 |
| No log | 3.0 | 186 | 2.5533 | 0.1356 | 0.0495 | 0.1144 | 0.1144 | 19.0 |
You can use this model in a Hugging Face pipeline for various text-to-text tasks:
from transformers import pipeline
translator = pipeline(
"summarization",
model="ashaduzzaman/t5-small-finetuned-billsum"
)
# Example usage: Summarization
input_text = "This is a long passage from a book that needs to be summarized."
summary = generator(input_text)
print(summary)