File size: 612 Bytes
e2cf24a
 
 
0ac1109
e2cf24a
 
 
 
 
 
 
 
 
0ac1109
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## Cyclone Chinese NER

This model provides simplified Chinese NER model based on pretrained model BERT (specifically BERT + CRF)
Currently, we only support 8 general type of entities ("address", "company", "government", "name", "organization", "position", "scene", "time")

### Usage
    from transformers import BertConfig


    config = BertConfig.from_pretrained("bert-base-chinese", num_labels=num_labels)


    model_path = "cyclone/cyclone-ner"


    tokenizer = CNerTokenizer.from_pretrained(model_path, do_lower_case=True)

    model = BertCrfForNer.from_pretrained(model_path, config=config)