BERT-train2deploy:BERT模型从训练到部署

上传者: 42139302 | 上传时间: 2021-07-10 20:53:43 | 文件大小: 891KB | 文件类型: ZIP
BERT模型从训练到部署全流程 Tag: BERT 训练 部署 缘起 在群里看到许多朋友在使用BERT模型,网上多数文章只提到了模型的训练方法,后面的生产部署及调用并没有说明。 这段时间使用BERT模型完成了从数据准备到生产部署的全流程,在这里整理出来,方便大家参考。 在下面我将以一个“手机评论的情感分类”为例子,简要说明从训练到部署的全部流程。最终完成后可以使用一个网页进行交互,实时地对输入的评论语句进行分类判断。 基本架构 基本架构为: graph LR A(BERT模型服务端) --> B(API服务端) B-->A B --> C(应用端) C-->B +-------------------+ | 应用端(HTML) | +-------------------+ ^^ || VV +---------------

文件下载

资源详情

[{"title":"( 24 个子文件 891KB ) BERT-train2deploy:BERT模型从训练到部署","children":[{"title":"BERT-train2deploy-master","children":[{"title":"freeze_graph.py <span style='color:#111;'> 8.74KB </span>","children":null,"spread":false},{"title":"tokenization.py <span style='color:#111;'> 11.97KB </span>","children":null,"spread":false},{"title":"mobile_apisvr","children":[{"title":"api_service.py <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"templates","children":[{"title":"index.html <span style='color:#111;'> 4.10KB </span>","children":null,"spread":false}],"spread":true},{"title":"static","children":[{"title":"index.html <span style='color:#111;'> 11.69KB </span>","children":null,"spread":false},{"title":"js","children":[{"title":"jquery-2.1.4.min.js <span style='color:#111;'> 82.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"css","children":[{"title":"nlp.css <span style='color:#111;'> 112.28KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"images","children":[{"title":"cap01.png <span style='color:#111;'> 50.75KB </span>","children":null,"spread":false},{"title":"cap05.png <span style='color:#111;'> 57.15KB </span>","children":null,"spread":false},{"title":"cap02.png <span style='color:#111;'> 27.09KB </span>","children":null,"spread":false},{"title":"cap00.png <span style='color:#111;'> 31.43KB </span>","children":null,"spread":false}],"spread":true},{"title":"model","children":[{"title":"label2id.pkl <span style='color:#111;'> 39B </span>","children":null,"spread":false},{"title":"eval_results.txt <span style='color:#111;'> 154B </span>","children":null,"spread":false}],"spread":true},{"title":"modeling.py <span style='color:#111;'> 37.19KB </span>","children":null,"spread":false},{"title":"bertsvr.sh <span style='color:#111;'> 640B </span>","children":null,"spread":false},{"title":"mobile_svr","children":[{"title":"bertsvr.sh <span style='color:#111;'> 618B </span>","children":null,"spread":false}],"spread":true},{"title":"requirements.txt <span style='color:#111;'> 110B </span>","children":null,"spread":false},{"title":"README.MD <span style='color:#111;'> 16.93KB </span>","children":null,"spread":false},{"title":"optimization.py <span style='color:#111;'> 6.11KB </span>","children":null,"spread":false},{"title":"dat","children":[{"title":"alldat.txt <span style='color:#111;'> 827.69KB </span>","children":null,"spread":false},{"title":"test.tsv <span style='color:#111;'> 163.92KB </span>","children":null,"spread":false},{"title":"dev.tsv <span style='color:#111;'> 161.73KB </span>","children":null,"spread":false},{"title":"train.tsv <span style='color:#111;'> 502.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"run_mobile.py <span style='color:#111;'> 36.45KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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