Update README.md
Browse files
README.md
CHANGED
@@ -1 +1,32 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: fr
|
3 |
+
tags:
|
4 |
+
- pytorch
|
5 |
+
- t5
|
6 |
+
- seq2seq
|
7 |
+
- summarization
|
8 |
+
datasets: cnn_dailymail
|
9 |
+
---
|
10 |
+
|
11 |
+
# French T5 Abstractive Text Summarization
|
12 |
+
|
13 |
+
## Model description
|
14 |
+
|
15 |
+
This model is a T5 Transformers model (JDBN/t5-base-fr-qg-fquad) that was fine-tuned in french for abstractive text summarization.
|
16 |
+
|
17 |
+
## How to use
|
18 |
+
|
19 |
+
```python
|
20 |
+
from transformers import T5Tokenizer, T5ForConditionalGeneration
|
21 |
+
tokenizer = T5Tokenizer.from_pretrained("plguillou/t5-base-fr-sum-cnndm")
|
22 |
+
model = T5ForConditionalGeneration.from_pretrained("plguillou/t5-base-fr-sum-cnndm")
|
23 |
+
```
|
24 |
+
|
25 |
+
To summarize an ARTICLE, just modify the string like this : "summarize: ARTICLE".
|
26 |
+
|
27 |
+
## Training data
|
28 |
+
|
29 |
+
The base model I used is JDBN/t5-base-fr-qg-fquad (it can perform question generation, question answering and answer extraction).
|
30 |
+
|
31 |
+
I used the "t5-base" model from the transformers library to translate in french the CNN / Daily Mail summarization dataset.
|
32 |
+
|