Summarization
Transformers
Safetensors
t5
text2text-generation
legal-documents
text-generation-inference
Instructions to use manjunathainti/fine_tuned_t5_summarizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use manjunathainti/fine_tuned_t5_summarizer with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("summarization", model="manjunathainti/fine_tuned_t5_summarizer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("manjunathainti/fine_tuned_t5_summarizer") model = AutoModelForSeq2SeqLM.from_pretrained("manjunathainti/fine_tuned_t5_summarizer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -62,8 +62,8 @@ The model may reflect biases present in the training data, such as jurisdictiona
|
|
| 62 |
|
| 63 |
### Recommendations
|
| 64 |
|
| 65 |
-
-
|
| 66 |
-
- Avoid using for legal tasks where complete precision is mandatory.
|
| 67 |
|
| 68 |
|
| 69 |
### Training Data
|
|
@@ -99,9 +99,8 @@ The model may reflect biases present in the training data, such as jurisdictiona
|
|
| 99 |
- Validation was performed on the `validation` split of the Multi-LexSum dataset, consisting of 4,818 examples.
|
| 100 |
|
| 101 |
#### Metrics
|
| 102 |
-
- **
|
| 103 |
-
- **
|
| 104 |
-
- **ROUGE-L:** 0.49
|
| 105 |
|
| 106 |
### Results
|
| 107 |
- The model produces reliable short and long summaries for legal documents, maintaining coherence and relevance.
|
|
|
|
| 62 |
|
| 63 |
### Recommendations
|
| 64 |
|
| 65 |
+
- A legal expert should always review outputs.
|
| 66 |
+
- Avoid using it for legal tasks where complete precision is mandatory.
|
| 67 |
|
| 68 |
|
| 69 |
### Training Data
|
|
|
|
| 99 |
- Validation was performed on the `validation` split of the Multi-LexSum dataset, consisting of 4,818 examples.
|
| 100 |
|
| 101 |
#### Metrics
|
| 102 |
+
- **bert_score Short Summary Precision :** 0.84
|
| 103 |
+
- **bert_score Long Summary Precision :** 0.81
|
|
|
|
| 104 |
|
| 105 |
### Results
|
| 106 |
- The model produces reliable short and long summaries for legal documents, maintaining coherence and relevance.
|