xiaoqin commited on
Commit
6ca933a
1 Parent(s): 8a22a1e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -11,7 +11,7 @@ This released pytorch model is downloading from huggingface, then fixed the voca
11
 
12
  ## 使用 Usage
13
  ```python
14
- from transformers import BertForMaskedLM, BertTokenizer
15
- tokenizer=BertTokenizer.from_pretrained("xiaoqin/ernie-1.0-base-zh")
16
- model=BertForMaskedLM.from_pretrained("xiaoqin/ernie-1.0-base-zh")
17
  ```
11
 
12
  ## 使用 Usage
13
  ```python
14
+ from transformers import AutoModelForMaskedLM, AutoTokenizer
15
+ tokenizer=AutoTokenizer.from_pretrained("xiaoqin/ernie-1.0-base-zh")
16
+ model=AutoModelForMaskedLM.from_pretrained("xiaoqin/ernie-1.0-base-zh")
17
  ```