基于pytorch+bilstm-crf的中文命名实体识别

上传者: admin_maxin | 上传时间: 2025-03-30 17:14:57 | 文件大小: 331KB | 文件类型: ZIP
基于pytorch+bilstm_crf的中文命名实体识别 文件说明 --checkpoints:模型保存的位置 --data:数据位置 --|--cnews:数据集名称 --|--|--raw_data:原始数据存储位置 --|--|--final_data:存储标签、词汇表等 --logs:日志存储位置 --utils:辅助函数存储位置,包含了解码、评价指标、设置随机种子、设置日志等 --config.py:配置文件 --dataset.py:数据转换为pytorch的DataSet --main.py:主运行程序 --main.sh:运行命令 --models.py:模型 --process.py:预处理,主要是处理数据然后转换成DataSet 运行命令 python main.py --data_dir="../data/cnews/final_data/" --log_dir="./logs/" --output_dir="./checkpoints/" --num_tags=33 --seed=123 --gpu_ids="0" --max_seq_len=128 --

文件下载

资源详情

[{"title":"( 27 个子文件 331KB ) 基于pytorch+bilstm-crf的中文命名实体识别","children":[{"title":"pytorch_bilstm_crf_chinese_ner-main","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"main.py <span style='color:#111;'> 12.78KB </span>","children":null,"spread":false},{"title":"data","children":[{"title":"cnews","children":[{"title":"raw_data","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"process.py <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"train.char.bmes <span style='color:#111;'> 1.17MB </span>","children":null,"spread":false},{"title":"dev.char.bmes <span style='color:#111;'> 131.45KB </span>","children":null,"spread":false},{"title":"test.char.bmes <span style='color:#111;'> 147.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"final_data","children":[{"title":"labels.txt <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"entities.txt <span style='color:#111;'> 245B </span>","children":null,"spread":false},{"title":"vocab.txt <span style='color:#111;'> 7.29KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"dataset.py <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"models.py <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"utils.py <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"metricsUtils.py <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"decodeUtils.cpython-37.pyc <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false},{"title":"trainUtils.cpython-37.pyc <span style='color:#111;'> 4.03KB </span>","children":null,"spread":false},{"title":"metricsUtils.cpython-37.pyc <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"__init__.cpython-37.pyc <span style='color:#111;'> 149B </span>","children":null,"spread":false},{"title":"utils.cpython-37.pyc <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false}],"spread":true},{"title":"decodeUtils.py <span style='color:#111;'> 5.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"process.py <span style='color:#111;'> 6.46KB </span>","children":null,"spread":false},{"title":"logs","children":[{"title":"bilstm_crf.log <span style='color:#111;'> 840.47KB </span>","children":null,"spread":false},{"title":"process.log <span style='color:#111;'> 18.10KB </span>","children":null,"spread":false}],"spread":true},{"title":"checkpoints","children":[{"title":"占位.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"main.sh <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"config.py <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明