EasyTerms/Manuel_dataset
Viewer • Updated • 394 • 10 • 2
How to use EasyTerms/etsummerizer_v2 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="EasyTerms/etsummerizer_v2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("EasyTerms/etsummerizer_v2")
model = AutoModelForSeq2SeqLM.from_pretrained("EasyTerms/etsummerizer_v2")# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("EasyTerms/etsummerizer_v2")
model = AutoModelForSeq2SeqLM.from_pretrained("EasyTerms/etsummerizer_v2")This model is a fine-tuned version of sshleifer/distilbart-cnn-12-6 on EasyTerms/Manuel_dataset. It achieves the following results on the evaluation set:
This model was finetuned on legal text extracted from different terms and conditions documents. Its objective is to efficiently summerize such text and present the generation in a simplified version lacking in legal jargon.
As it is the second version of this model it effectively summerize legal text however, further training will be required to improve the simplification task.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum |
|---|---|---|---|---|---|---|---|
| 3.5 | 1.0 | 30 | 0.5565 | 0.5111 | 0.2863 | 0.4092 | 0.4093 |
| 0.3056 | 2.0 | 60 | 0.3612 | 0.5267 | 0.3021 | 0.4277 | 0.4286 |
| 0.1716 | 3.0 | 90 | 0.3484 | 0.5448 | 0.3092 | 0.4363 | 0.4370 |
# 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="EasyTerms/etsummerizer_v2")