Update README.md
Browse files
README.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
-
# T5: Text-To-Text Transfer Transformer for english vietnamese translation
|
|
|
|
|
|
|
|
|
2 |
import torch
|
3 |
|
4 |
from transformers import MT5ForConditionalGeneration, T5Tokenizer
|
@@ -30,4 +34,10 @@ summary_ids = model.generate(
|
|
30 |
)
|
31 |
output = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
32 |
print(output)
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# T5: Text-To-Text Transfer Transformer for english vietnamese translation
|
2 |
+
|
3 |
+
#### Example Using
|
4 |
+
|
5 |
+
```
|
6 |
import torch
|
7 |
|
8 |
from transformers import MT5ForConditionalGeneration, T5Tokenizer
|
|
|
34 |
)
|
35 |
output = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
36 |
print(output)
|
37 |
+
```
|
38 |
+
|
39 |
+
```
|
40 |
+
|
41 |
+
Ở trường, chúng tôi dành nhiều thời gian để nghiên cứu về lịch sử Kim Il-Sung, nhưng chúng tôi chưa bao giờ học được nhiều về thế giới bên ngoài, ngoại trừ Mỹ, Hàn Quốc, Nhật Bản là kẻ thù.
|
42 |
+
|
43 |
+
```
|