pengjie.wu commited on
Commit
e2cf24a
1 Parent(s): 3265448

add readme

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Cyclone Chinese NER
2
+
3
+ This model provides simplified Chinese NER model based on pretrained model BERT (specifically BERT + CRF)
4
+ Currently, we only support 8 general type of entities ("address", "company", "government", "name", "organization", "position", "scene")
5
+
6
+ ### Usage
7
+ from transformers import BertConfig
8
+
9
+ config = BertConfig.from_pretrained("bert-base-chinese", num_labels=num_labels)
10
+
11
+ model_path = "cyclone/cyclone-ner"
12
+
13
+ tokenizer = CNerTokenizer.from_pretrained(model_path, do_lower_case=True)
14
+ model = BertCrfForNer.from_pretrained(model_path, config=config)