Commit
·
2b4fd2d
1
Parent(s):
5ede160
Update README.md
Browse files
README.md
CHANGED
@@ -4,12 +4,27 @@ license: cc-by-nc-3.0
|
|
4 |
|
5 |
T5-base model trained for text paraphrase
|
6 |
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
```
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
14 |
}
|
15 |
```
|
|
|
4 |
|
5 |
T5-base model trained for text paraphrase
|
6 |
|
7 |
+
You can load this model by:
|
8 |
+
```python
|
9 |
+
from transformers import T5ForConditionalGeneration,T5TokenizerFast
|
10 |
+
|
11 |
+
model = T5ForConditionalGeneration.from_pretrained(model_name_or_path)
|
12 |
+
tokenizer = T5TokenizerFast.from_pretrained(model_name_or_path)
|
13 |
+
```
|
14 |
+
|
15 |
+
A prefix "paraphrase: " should be added in font of the input sequence, i.e.:
|
16 |
+
```python
|
17 |
+
input_st = "paraphrase: " + text + " </s>"
|
18 |
+
```
|
19 |
+
|
20 |
+
Please find more training details in our paper:
|
21 |
```
|
22 |
+
@inproceedings{zhang2022decay,
|
23 |
+
title={Decay No More: A Persistent Twitter Dataset for Learning Social Meaning},
|
24 |
+
author={Zhang, Chiyu and Abdul-Mageed, Muhammad and Nagoudi, El Moatez Billah},
|
25 |
+
booktitle ={Proceedings of 1st Workshop on Novel Evaluation Approaches for Text Classification Systems on Social Media (NEATCLasS)},
|
26 |
+
year={2022},
|
27 |
+
url = {https://arxiv.org/pdf/2204.04611.pdf},
|
28 |
+
publisher = {{AAAI} Press},
|
29 |
}
|
30 |
```
|