Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aespresso committed Jul 21, 2019
1 parent c4bddca commit 59b1fab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion 04_transformer_tutorial_2nd_part/readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
注意本代码还在完善中, 我会再添加一些注释和指引, 方便小伙伴们学习, 如果你有任何问题, 请提issue或者直接在B站给我留言.

BERT_tutorial文件夹内容为一个项目, 可以从pycharm里打开:



BERT_tutorial文件夹内容为一个项目, 可以从pycharm里打开:
模型为PyTorch搭建:
是在开源项目 https://github.com/huggingface/pytorch-transformers 的基础上修改而来.
文件夹内的transformer_2_tutorial.ipynb为文字版教程.
情感分析模型下载地址:
链接:https://pan.baidu.com/s/1f9M9xjJJBf4C5XHlmD2Fbw 密码:jb8c

维基百科语料预训练BERT模型下载地址:
链接:https://pan.baidu.com/s/1IbNWTcJDMWAC3JEs28pmnA 密码:jf5w

下载之后请将sentiment.model.epoch.418文件放入BERT_tutorial文件夹根目录下的sentiment_state_dict文件夹, 方可执行Sentiment_Inference来测试情感分类模型.

0 comments on commit 59b1fab

Please sign in to comment.