Skip to content
Projects

cooscao/Bert-BiLSTM-CRF-pytorch

View on GitHub

About

bert-bilstm-crf implemented in pytorch for named entity recognition.

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Bert-BiLSTM-CRF-pytorch

bert-bilstm-crf implemented in pytorch for named entity recognition.

python == 3.6
pytorch == 0.4.1
pytorch_pretrained_bert == 0.6.1

Data

  • 首先将数据处理成BIO格式,processed文件夹下存放的是医疗命名实体识别的数据,代码可参考data_process.ipynb
  • 下载中文BERT预训练模型,来自pytorch-pretrained-bert

模型训练

python main.py -- n_epochs 100 --finetuning --top_rnns

模型预测

python crf_predict.py

Explore related projects

Loading…