Update README.md
Browse files
README.md
CHANGED
@@ -40,11 +40,11 @@ Compared with T5,-samll we implement its Chinese version. In order to use for ch
|
|
40 |
## 使用 Usage
|
41 |
|
42 |
```python
|
43 |
-
from transformers import T5ForConditionalGeneration,
|
44 |
import torch
|
45 |
|
46 |
-
tokenizer=
|
47 |
-
model=T5ForConditionalGeneration.from_pretrained('IDEA-CCNL/Randeng-T5-Char-
|
48 |
```
|
49 |
|
50 |
## 引用 Citation
|
|
|
40 |
## 使用 Usage
|
41 |
|
42 |
```python
|
43 |
+
from transformers import T5ForConditionalGeneration, BertTokenizer
|
44 |
import torch
|
45 |
|
46 |
+
tokenizer=BertTokenizer.from_pretrained('IDEA-CCNL/Randeng-T5-Char-700M-Chinese', add_special_tokens=False)
|
47 |
+
model=T5ForConditionalGeneration.from_pretrained('IDEA-CCNL/Randeng-T5-Char-700M-Chinese')
|
48 |
```
|
49 |
|
50 |
## 引用 Citation
|