Update README.md
Browse files
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
|
15 |
-
tokenizer=
|
16 |
-
model=
|
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 |
```
|