基于 pytorch-transformers 实现的 BERT 中文文本分类代码

上传者: 40216188 | 上传时间: 2024-05-09 10:42:25 | 文件大小: 732.57MB | 文件类型: ZIP
基于 pytorch-transformers 实现的 BERT 中文文本分类代码 数据: 从 THUCNews 中随机抽取20万条新闻标题,一共有10个类别:财经、房产、股票、教育、科技、社会、时政、体育、游戏、娱乐,每类2万条标题数据。数据集按如下划分: 训练集:18万条新闻标题,每个类别的标题数为18000 验证集:1万条新闻标题,每个类别的标题数为1000 测试集:1万条新闻标题,每个类别的标题数为1000

文件下载

资源详情

[{"title":"( 29 个子文件 732.57MB ) 基于 pytorch-transformers 实现的 BERT 中文文本分类代码","children":[{"title":"BERT-classification","children":[{"title":"README.docx <span style='color:#111;'> 182.49KB </span>","children":null,"spread":false},{"title":"config.py <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"pretrained_bert","children":[{"title":"pytorch_model.bin <span style='color:#111;'> 392.51MB </span>","children":null,"spread":false},{"title":"config.json <span style='color:#111;'> 624B </span>","children":null,"spread":false},{"title":"vocab.txt <span style='color:#111;'> 106.97KB </span>","children":null,"spread":false}],"spread":true},{"title":"train.py <span style='color:#111;'> 5.07KB </span>","children":null,"spread":false},{"title":"main.py <span style='color:#111;'> 4.26KB </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"config.cpython-38.pyc <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"preprocess.cpython-38.pyc <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"train.cpython-38.pyc <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false}],"spread":true},{"title":"transformer.py <span style='color:#111;'> 27.69KB </span>","children":null,"spread":false},{"title":".idea","children":[{"title":".gitignore <span style='color:#111;'> 50B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 3.99KB </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 206B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 281B </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"transformer.iml <span style='color:#111;'> 503B </span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 279B </span>","children":null,"spread":false},{"title":"profiles_settings.xml <span style='color:#111;'> 174B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"preprocess.py <span style='color:#111;'> 4.75KB </span>","children":null,"spread":false},{"title":"results","children":[{"title":"train_results.txt <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"dev_results.png <span style='color:#111;'> 28.20KB </span>","children":null,"spread":false},{"title":"test_results.png <span style='color:#111;'> 13.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"data","children":[{"title":"input.txt <span style='color:#111;'> 194B </span>","children":null,"spread":false},{"title":"test.txt <span style='color:#111;'> 548.43KB </span>","children":null,"spread":false},{"title":"dev.txt <span style='color:#111;'> 548.16KB </span>","children":null,"spread":false},{"title":"label.txt <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":"model","children":[{"title":"bert_model.pth <span style='color:#111;'> 390.23MB </span>","children":null,"spread":false}],"spread":false},{"title":"train.txt <span style='color:#111;'> 9.66MB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

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