File size: 4,618 Bytes
d447712
202c9f3
 
4466e71
202c9f3
d447712
4466e71
 
 
 
d447712
4466e71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68c4d3b
4466e71
202c9f3
d447712
 
4466e71
d447712
4466e71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d447712
4466e71
 
 
 
 
 
 
 
 
 
 
 
d447712
4466e71
d447712
4466e71
d447712
4466e71
d447712
4466e71
d447712
4466e71
 
d447712
4466e71
 
 
 
 
 
 
d447712
4466e71
d447712
4466e71
d447712
4466e71
d447712
4466e71
 
d447712
4466e71
d447712
4466e71
 
d447712
4466e71
d447712
4466e71
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
base_model: T5
datasets: dennlinger/eur-lex-sum
language: en
pipeline_tag: summarization
tags:
- summarization
- abstractive
- hybrid
- multistep
model-index:
- name: BART
  results:
  - task:
      type: summarization
      name: Long, Legal Document Summarization
    dataset:
      name: eur-lex-sum
      type: dennlinger/eur-lex-sum
    metrics:
    - type: ROUGE-1
      value: 0.3033175377014679
    - type: ROUGE-2
      value: 0.1240611664538099
    - type: ROUGE-L
      value: 0.1994150614076662
    - type: BERTScore
      value: 0.8442945966507469
    - type: BARTScore
      value: -2.158481716204168
    - type: BLANC
      value: 0.07599760218879374
---

# Model Card for T5_no_extraction_V1

## Model Details
---
### Model Description

This model is a fine-tuned version of T5. The research involves a multi-step summarization approach to long, legal documents. Many decisions in the renewables energy space are heavily dependent on regulations. But these regulations are often long and complicated. The proposed architecture first uses one or more extractive summarization steps to compress the source text, before the final summary is created by the abstractive summarization model. This fine-tuned abstractive model has been trained on a dataset, pre-processed through extractive summarization by No extractive model with No ratio ratio. The research has used multiple extractive-abstractive model combinations, which can be found on https://huggingface.co/MikaSie. To obtain optimal results, feed the model an extractive summary as input as it was designed this way!

The dataset used by this model is the [EUR-lex-sum](https://huggingface.co/datasets/dennlinger/eur-lex-sum) dataset. The evaluation metrics can be found in the metadata of this model card.
This paper was introduced by the master thesis of Mika Sie at the University Utrecht in collaboration with Power2x. More information can be found in PAPER_LINK. 

- **Developed by:** Mika Sie
- **Funded by:** University Utrecht & Power2X
- **Language (NLP):** English
- **Finetuned from model:** T5


### Model Sources

- **Repository**: https://github.com/MikaSie/Thesis
- **Paper**: PAPER_LINK
- **Streamlit demo**: STREAMLIT_LINK

## Uses
---
### Direct Use

This model can be directly used for summarizing long, legal documents. However, it is recommended to first use an extractive summarization tool, such as No extractive model, to compress the source text before feeding it to this model. This model has been specifically designed to work with extractive summaries.
An example using the Huggingface pipeline could be:

```python
pip install bert-extractive-summarizer

from summarizer import Summarizer
from transformers import pipeline

extractive_model = Summarizer()

text = 'Original document text to be summarized'

extractive_summary = Summarizer(text)

abstractive_model = pipeline('summarization', model = 'MikaSie/T5_no_extraction_V1', tokenizer = 'MikaSie/T5_no_extraction_V1')

result = pipeline(extractive_summary)
```

But more information of implementation can be found in the Thesis report.
### Out-of-Scope Use

Using this model without an extractive summarization step may not yield optimal results. It is recommended to follow the proposed multi-step summarization approach outlined in the model description for best performance.

## Bias, Risks, and Limitations
---

### Bias

As with any language model, this model may inherit biases present in the training data. It is important to be aware of potential biases in the source text and to critically evaluate the generated summaries.

### Risks

- The model may not always generate accurate or comprehensive summaries, especially for complex legal documents.
- The model may not generate truthful information.

### Limitations

- The model may produce summaries that are overly abstractive or fail to capture important details.
- The model's performance may vary depending on the quality and relevance of the extractive summaries used as input.

### Recommendations

- Carefully review and validate the generated summaries before relying on them for critical tasks.
- Consider using the model in conjunction with human review or other validation mechanisms to ensure the accuracy and completeness of the summaries.
- Experiment with different extractive summarization models or techniques to find the most suitable input for the abstractive model.
- Provide feedback and contribute to the ongoing research and development of the model to help improve its performance and address its limitations.
- Any actions taken based on this content are at your own risk.