-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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来测试情感分类模型. |