baseline:BiLSTM-CRFGitHub地址:
https://github.com/CLUEbenchmark/CLUENER2020/tree/master/pytorch_version
数据下载地址:
https://www.cluebenchmarks.com/introduce.html(选择细颗粒度命名实体识别的数据)
数据集详情在数据下载地址或GitHub中均有说明
环境:
pytorch1.12
python3.7
程序结构
模型代码:model.py
训练代码:run_lstm_crf.py
评估代码:run_lstm_crf.py
训练模型
python run_lstm_crf.py --do_train
模型预测
python run_lstm_crf.py --do_predict



