Maciel commited on
Commit
0480d70
1 Parent(s): 5d5acca

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -35,9 +35,9 @@ T5Corrector:中文字音与字形纠错模型
35
 
36
  ```python
37
  # 加载模型
38
- from transformers import T5Tokenizer, T5ForConditionalGeneration
39
  pretrained = "Maciel/T5Corrector-base-v2"
40
- tokenizer = T5Tokenizer.from_pretrained(pretrained)
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