ernie:使用Keras TensorFlow 2进行的基于BERT的简单最新句子分类。使用HuggingFace的变形金刚构建-源码

上传者: 42134144 | 上传时间: 2021-05-28 15:48:32 | 文件大小: 201KB | 文件类型: ZIP
BERT的最好的朋友。 安装 Ernie需要Python 3.6或更高版本。 pip install ernie 微调 句子分类 from ernie import SentenceClassifier , Models import pandas as pd tuples = [( "This is a positive example. I'm very happy today." , 1 ), ( "This is a negative sentence. Everything was wrong today at work." , 0 )] df = pd . D

文件下载

资源详情

[{"title":"( 25 个子文件 201KB ) ernie:使用Keras TensorFlow 2进行的基于BERT的简单最新句子分类。使用HuggingFace的变形金刚构建-源码","children":[{"title":"ernie-master","children":[{"title":"install.sh <span style='color:#111;'> 47B </span>","children":null,"spread":false},{"title":"upload.sh <span style='color:#111;'> 65B </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 114B </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"binary_classifier.py <span style='color:#111;'> 713B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"example.csv <span style='color:#111;'> 123B </span>","children":null,"spread":false},{"title":"split_aggregate.py <span style='color:#111;'> 17.18KB </span>","children":null,"spread":false},{"title":"dump_load.py <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 66B </span>","children":null,"spread":false},{"title":"predict.py <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"load_model.py <span style='color:#111;'> 892B </span>","children":null,"spread":false},{"title":"load_csv.py <span style='color:#111;'> 668B </span>","children":null,"spread":false}],"spread":true},{"title":"setup.py <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 6.95KB </span>","children":null,"spread":false},{"title":"ernie","children":[{"title":"split_strategies.py <span style='color:#111;'> 4.26KB </span>","children":null,"spread":false},{"title":"helper.py <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"ernie.py <span style='color:#111;'> 12.71KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 967B </span>","children":null,"spread":false},{"title":"aggregation_strategies.py <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"models.py <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"misc","children":[{"title":"ernie-logo.svg <span style='color:#111;'> 17.23KB </span>","children":null,"spread":false},{"title":"stickermule-logo.png <span style='color:#111;'> 19.47KB </span>","children":null,"spread":false},{"title":"ernie-sticker-holographic.png <span style='color:#111;'> 102.52KB </span>","children":null,"spread":false},{"title":"ernie-sticker-diecut.png <span style='color:#111;'> 50.97KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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