BERT for Chinese NER.
- BERT+Softmax
- BERT+CRF
- BERT+Span
- 1.1.0 =< PyTorch < 1.5.0
- cuda=9.0
- python3.6+
Input format (prefer BIOS tag scheme), with each character its label for one line. Sentences are splited with a null line.
美 B-LOC
国 I-LOC
的 O
华 B-PER
莱 I-PER
士 I-PER
我 O
跟 O
他 O
- Modify the configuration information in
run_ner_xxx.py
orrun_ner_xxx.sh
. sh scripts/run_ner_xxx.sh
note: file structure of the model
├── prev_trained_model
| └── bert_base
| | └── pytorch_model.bin
| | └── config.json
| | └── vocab.txt
| | └── ......