emfomy commited on
Commit
e7bdda6
β€’
1 Parent(s): 78b5eb1

Update usage.

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -35,11 +35,11 @@ Please use BertTokenizerFast as tokenizer instead of AutoTokenizer.
35
  ```
36
  from transformers import (
37
  BertTokenizerFast,
38
- AutoModelForTokenClassification,
39
  )
40
 
41
  tokenizer = BertTokenizerFast.from_pretrained('bert-base-chinese')
42
- model = AutoModelForTokenClassification.from_pretrained('ckiplab/albert-base-chinese-ner')
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-base-chinese-ner')
43
  ```
44
 
45
  For full usage and more information, please refer to https://github.com/ckiplab/ckip-transformers.