没有合适的资源?快使用搜索试试~ 我知道了~
pytorch-bert:使用PyTorch的TransformerEncoder实现BERT
共21个文件
py:12个
txt:2个
ini:1个
需积分: 49 9 下载量 121 浏览量
2021-04-25
21:54:23
上传
评论
收藏 18KB ZIP 举报
温馨提示
皮托伯特 使用PyTorch TransformerEncoder和预训练模型的BERT实现。 安装 pip install pytorch-bert 用法 config = BertConfig . from_json ( "path-to-pretarined-weights/bert_config.json" ) model = Bert ( config ) load_tf_weight_to_pytorch_bert ( model , config , "path-to-pretarined-weights/bert_model.ckpt" ) 将模型文件下载到存储库中。
资源推荐
资源详情
资源评论
收起资源包目录
pytorch-bert-master.zip (21个子文件)
pytorch-bert-master
setup.py 801B
.gitignore 2KB
requirements.txt 6B
pyproject.toml 75B
setup.cfg 182B
examples
run_squad.py 5KB
pytorch_bert
__init__.py 292B
feature.py 2KB
tokenizer.py 10KB
modeling.py 5KB
weight_converter.py 5KB
README.md 1KB
tests
test_tokenizer.py 3KB
__init__.py 0B
test_modeling.py 2KB
test_feature.py 4KB
test_converter.py 3KB
.circleci
config.yml 1KB
.gitattributes 66B
requirements-dev.txt 104B
tox.ini 229B
共 21 条
- 1
资源评论
吉莫吉鱼
- 粉丝: 15
- 资源: 4591
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功