A PyTorch implementation of Bert models for Named Entity Recognition(NER).
The training arguments can be found in args/. To train CRF models, the command should be like
$ python run_ner_crf.py args/bert_crf-clue_ner.json
RTX3090, Driver Version: 455.38, CUDA Version: 11.1
Datasets used in this repository can be found in OYE93/Chinese-NLP-Corpus - Github and CLUEbenchmark.
Pretrained language model(PLM) including
Named Entity Recognition Prediction Header including
The performance on dev set of CLUENER2000(F1 score).
| entitiy | Human Performance | Bert-crf | Bert-span | Bert-biaffine | Bert-span-v2 |
|---|---|---|---|---|---|
| Address | 43.04 | 64.30 | 65.76 | 65.47 | 69.51 |
| Book | 71.70 | 82.58 | 83.61 | 81.23 | 82.84 |
| Company | 49.32 | 80.82 | 83.11 | 81.96 | 85.36 |
| Game | 80.39 | 84.93 | 85.29 | 84.06 | 85.66 |
| Government | 79.27 | 82.92 | 83.07 | 81.25 | 86.02 |
| Movie | 63.21 | 83.06 | 83.11 | 83.62 | 87.26 |
| Person Name | 74.49 | 88.87 | 88.87 | 87.38 | 89.58 |
| Organization | 65.41 | 80.27 | 82.48 | 80.56 | 84.58 |
| Position | 55.38 | 79.51 | 80.69 | 80.76 | 80.24 |
| Scene | 51.85 | 76.56 | 72.37 | 74.07 | 75.25 |
| Overall@Macro | 63.41 | 80.38 | 80.84 | 79.89 | 82.63 |
| Overall@Micro | / | 80.26 | 81.00 | 80.08 | 82.72 |
| entitiy | Bert-span-v2 | Ernie-span-v2 |
|---|---|---|
| Address | 69.51 | 67.16 |
| Book | 82.84 | 81.82 |
| Company | 85.36 | 84.11 |
| Game | 85.66 | 87.39 |
| Government | 86.02 | 84.48 |
| Movie | 87.26 | 86.92 |
| Person Name | 89.58 | 89.37 |
| Organization | 84.58 | 83.67 |
| Position | 80.24 | 81.26 |
| Scene | 75.25 | 73.60 |
| Overall@Macro | 82.63 | 81.98 |
| Overall@Micro | 82.72 | 82.19 |
A PyTorch implementation of Bert models for Named Entity Recognition(NER).
The training arguments can be found in args/. To train CRF models, the command should be like
$ python run_ner_crf.py args/bert_crf-clue_ner.json
RTX3090, Driver Version: 455.38, CUDA Version: 11.1
Datasets used in this repository can be found in OYE93/Chinese-NLP-Corpus - Github and CLUEbenchmark.
Pretrained language model(PLM) including
Named Entity Recognition Prediction Header including
The performance on dev set of CLUENER2000(F1 score).
| entitiy | Human Performance | Bert-crf | Bert-span | Bert-biaffine | Bert-span-v2 |
|---|---|---|---|---|---|
| Address | 43.04 | 64.30 | 65.76 | 65.47 | 69.51 |
| Book | 71.70 | 82.58 | 83.61 | 81.23 | 82.84 |
| Company | 49.32 | 80.82 | 83.11 | 81.96 | 85.36 |
| Game | 80.39 | 84.93 | 85.29 | 84.06 | 85.66 |
| Government | 79.27 | 82.92 | 83.07 | 81.25 | 86.02 |
| Movie | 63.21 | 83.06 | 83.11 | 83.62 | 87.26 |
| Person Name | 74.49 | 88.87 | 88.87 | 87.38 | 89.58 |
| Organization | 65.41 | 80.27 | 82.48 | 80.56 | 84.58 |
| Position | 55.38 | 79.51 | 80.69 | 80.76 | 80.24 |
| Scene | 51.85 | 76.56 | 72.37 | 74.07 | 75.25 |
| Overall@Macro | 63.41 | 80.38 | 80.84 | 79.89 | 82.63 |
| Overall@Micro | / | 80.26 | 81.00 | 80.08 | 82.72 |
| entitiy | Bert-span-v2 | Ernie-span-v2 |
|---|---|---|
| Address | 69.51 | 67.16 |
| Book | 82.84 | 81.82 |
| Company | 85.36 | 84.11 |
| Game | 85.66 | 87.39 |
| Government | 86.02 | 84.48 |
| Movie | 87.26 | 86.92 |
| Person Name | 89.58 | 89.37 |
| Organization | 84.58 | 83.67 |
| Position | 80.24 | 81.26 |
| Scene | 75.25 | 73.60 |
| Overall@Macro | 82.63 | 81.98 |
| Overall@Micro | 82.72 | 82.19 |