emfomy commited on
Commit
9a0a13b
β€’
1 Parent(s): c550aa3

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/bert-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/bert-base-chinese-ner')
43
  ```
44
 
45
  For full usage and more information, please refer to https://github.com/ckiplab/ckip-transformers.