xiaoqin commited on
Commit
8a22a1e
1 Parent(s): 76fa1c3

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 AutoTokenizer, AutoModel
15
- tokenizer=AutoTokenizer.from_pretrained("xiaoqin/ernie-1.0-base-zh")
16
- model=AutoModel.from_pretrained("xiaoqin/ernie-1.0-base-zh")
17
  ```
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
  ```