Update usage.
Browse files
README.md
CHANGED
@@ -35,11 +35,11 @@ Please use BertTokenizerFast as tokenizer instead of AutoTokenizer.
|
|
35 |
```
|
36 |
from transformers import (
|
37 |
BertTokenizerFast,
|
38 |
-
|
39 |
)
|
40 |
|
41 |
tokenizer = BertTokenizerFast.from_pretrained('bert-base-chinese')
|
42 |
-
model =
|
43 |
```
|
44 |
|
45 |
For full usage and more information, please refer to https://github.com/ckiplab/ckip-transformers.
|
|
|
35 |
```
|
36 |
from transformers import (
|
37 |
BertTokenizerFast,
|
38 |
+
AutoModel,
|
39 |
)
|
40 |
|
41 |
tokenizer = BertTokenizerFast.from_pretrained('bert-base-chinese')
|
42 |
+
model = AutoModel.from_pretrained('ckiplab/albert-tiny-chinese-ws')
|
43 |
```
|
44 |
|
45 |
For full usage and more information, please refer to https://github.com/ckiplab/ckip-transformers.
|