Update README.md
Browse files
README.md
CHANGED
@@ -35,9 +35,9 @@ T5Corrector:中文字音与字形纠错模型
|
|
35 |
|
36 |
```python
|
37 |
# 加载模型
|
38 |
-
from transformers import
|
39 |
pretrained = "Maciel/T5Corrector-base-v2"
|
40 |
-
tokenizer =
|
41 |
model = T5ForConditionalGeneration.from_pretrained(pretrained)
|
42 |
```
|
43 |
|
|
|
35 |
|
36 |
```python
|
37 |
# 加载模型
|
38 |
+
from transformers import AutoTokenizer, T5ForConditionalGeneration
|
39 |
pretrained = "Maciel/T5Corrector-base-v2"
|
40 |
+
tokenizer = AutoTokenizer.from_pretrained(pretrained)
|
41 |
model = T5ForConditionalGeneration.from_pretrained(pretrained)
|
42 |
```
|
43 |
|