Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurui Zhang authored and Shurui Zhang committed Sep 16, 2019
2 parents 78d6850 + 6e72c4d commit 0750b4f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 04_transformer_tutorial_2nd_part/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
注意本代码还在完善中, 我会再添加一些注释和指引, 方便小伙伴们学习, 如果你有任何问题, 请提issue或者直接在B站给我留言.

BERT_tutorial文件夹内容为一个项目, 可以从pycharm里打开:
模型为PyTorch搭建:
是在开源项目 https://github.com/huggingface/pytorch-transformers 的基础上修改而来.
文件夹内的transformer_2_tutorial.ipynb为文字版教程.
情感分析模型下载地址:
链接:https://pan.baidu.com/s/1f9M9xjJJBf4C5XHlmD2Fbw 密码:jb8c
下载之后请将sentiment.model.epoch.418文件放入BERT_tutorial文件夹根目录下的sentiment_state_dict文件夹, 方可执行Sentiment_Inference来测试情感分类模型.

维基百科语料预训练BERT模型下载地址:
链接:https://pan.baidu.com/s/1IbNWTcJDMWAC3JEs28pmnA 密码:jf5w
你如果想重新训练情感分类模型, 需要把BERT模型放入BERT_tutorial文件夹根目录下的bert_state_dict文件夹内.

维基百科训练语料下载地址:
训练集:
链接:https://pan.baidu.com/s/1fXRlhhAPDdOJXGJhfgfpoQ 密码:u49e
测试集:
链接:https://pan.baidu.com/s/1Q_ccloyTMONURmodpzeJ4A 密码:4s9w
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# a_journey_into_math_of_ml
### 机器学习之数学之旅系列课程:
作者邮箱: espresso_ml@hotmail.com
__视频讲解频道__:
**youtube**:
https://www.youtube.com/channel/UCZ4Rpk5ilk5w1uO3KRNaYBg
Expand All @@ -26,3 +27,9 @@ https://zhuanlan.zhihu.com/c_1018534554512035840
| 视频讲解: [B站讲解](https://www.bilibili.com/video/av56033745/) / [youtube](https://www.youtube.com/watch?v=-rqGPD06Ifs&t=5s) |
| 书面教程: [汉语自然语言处理-从零解读碾压循环神经网络的transformer模型(一)](https://github.com/aespresso/a_journey_into_math_of_ml/tree/master/03_transformer_tutorial_1st_part) |
| 视频讲解: [B站讲解](https://www.bilibili.com/video/av58239477/) / [youtube](https://www.youtube.com/watch?v=wLKsaZWeuCM) |
| 书面教程: [汉语自然语言处理-BERT的解读语言模型预训练与实践应用-transformer模型(二)](https://github.com/aespresso/a_journey_into_math_of_ml/tree/master/04_transformer_tutorial_2nd_part) |
| 视频讲解: [B站讲解](https://www.bilibili.com/video/av60168891/) / [youtube]() |
| 书面教程: 汉语自然语言处理-HMM与命名实体识别NER-制作中 |
| 视频讲解: |
| 书面教程: 汉语自然语言处理-维特比算法-制作中 |
| 视频讲解: |

0 comments on commit 0750b4f

Please sign in to comment.