# BERT-NER-Pytorch **Repository Path**: shimii/BERT-NER-Pytorch ## Basic Information - **Project Name**: BERT-NER-Pytorch - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-21 - **Last Updated**: 2021-04-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BERT-NER-Pytorch The **train** code are modified from **[huggingface/pytorch-transformers](https://github.com/huggingface/pytorch-transformers/blob/master/examples/run_squad.py)**, **data process** code are modified from **[google-research/bert](https://github.com/google-research/bert/blob/master/extract_features.py)**, and **evaluation metric** code are modified from **[PaddlePaddle/ERNIE](https://github.com/PaddlePaddle/ERNIE/blob/develop/finetune/sequence_label.py)** ## Experiment ### Dataset MSRA-NER(SIGHAN2006) ### Result **ERNIE** | Stage | F1-score | Precision | Recall | | :------: | :------: | :-------: | :----: | | **Dev** | 0.955 | 0.953 | 0.957 | | **Test** | 0.957 | 0.955 | 0.959 | I use tensorboard to record important measures during training and evaluation. You can find the event file in `runs/` folder and see the trend using the command below: `tensorboard --logdir=runs/` The graph should be like:  ### Configuration
| OS | Ubuntu 18.04 |
|---|---|
| CPU | Intel® Core™ i7-7800X CPU @ 3.50GHz × 12 |
| GPU | GeForce RTX 2080 Ti/PCIe/SSE2 |
| CUDA | 10.0 |
| CUDNN | 7.6 |