BERT-BiLSTM-CRF-master.zip

时间:2023-08-07 04:45:36
【文件属性】:
文件名称:BERT-BiLSTM-CRF-master.zip
文件大小:883KB
文件格式:ZIP
更新时间:2023-08-07 04:45:36
文本分类 命名实体识别代码,解压即可用 # BERT-BiLSTM-CRF BERT-BiLSTM-CRF的Keras版实现 ## BERT配置 1. 首先需要下载Pre-trained的BERT模型,本文用的是Google开源的中文BERT模型: - https://storage.googleapis.com/bert_models/2018_11_03/chinese_L-12_H-768_A-12.zip 2. 安装BERT客户端和服务器 pip install bert-serving-server pip install bert-serving-client,源项目如下: - https://github.com/hanxiao/bert-as-service 3. 打开服务器,在BERT根目录下,打开终端,输入命令: - bert-serving-start -pooling_strategy NONE -max_seq_len 144 -mask_cls_sep -model_dir chinese_L-12_H-768_A-12/ -num_worker 1
【文件预览】:
BERT-BiLSTM-CRF-master
----ModelLib.py(2KB)
----train.py(1KB)
----config.py(771B)
----MyLayer.py(4KB)
----test.py(3KB)
----.idea()
--------workspace.xml(20KB)
--------vcs.xml(180B)
----generator.py(2KB)
----README.md(1KB)
----data()
--------Pos_train.txt(2.7MB)
--------Pos_test.txt(302KB)
----preprocess.py(11KB)

网友评论