Update README.md
Browse files
README.md
CHANGED
@@ -1,8 +1,19 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
|
|
4 |
PyTorch model available.
|
5 |
-
|
6 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
7 |
|
8 |
tokenizer = AutoTokenizer.from_pretrained("Isotonic/informal_to_formal")
|
@@ -29,4 +40,6 @@ outputs = model.generate(
|
|
29 |
for output in outputs:
|
30 |
line = tokenizer.decode(output, skip_special_tokens=True,clean_up_tokenization_spaces=True)
|
31 |
print(line)
|
32 |
-
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: "en"
|
3 |
+
tags:
|
4 |
+
- style-transfer
|
5 |
+
- text-generation
|
6 |
+
- Conditional Generation
|
7 |
+
inference: false
|
8 |
+
---
|
9 |
+
|
10 |
+
# Paraphrase-Generation
|
11 |
+
## Model description
|
12 |
+
T5 Model for Formality Style Transfer. Trained on the GYAFC dataset.
|
13 |
|
14 |
+
## How to use
|
15 |
PyTorch model available.
|
16 |
+
```python
|
17 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
18 |
|
19 |
tokenizer = AutoTokenizer.from_pretrained("Isotonic/informal_to_formal")
|
|
|
40 |
for output in outputs:
|
41 |
line = tokenizer.decode(output, skip_special_tokens=True,clean_up_tokenization_spaces=True)
|
42 |
print(line)
|
43 |
+
|
44 |
+
Output: "Would you look into the two deals in question, then let me know?"
|
45 |
+
```
|