diff --git a/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/README.md b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/README.md new file mode 100644 index 0000000..ca5c8a8 --- /dev/null +++ b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/README.md @@ -0,0 +1,58 @@ +# README + +[BERT开源框架地址](),最好读下README,以下是预训练好的BERT模型,这里用到两个 + +![1609825905750](C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\1609825905750.png) + +> 点击即可下载,里面内容如下 + +![1609826152438](assets/1609826152438.png) + +![1609826160982](assets/1609826160982.png) + +> json:相关的参数 +> +> vocab:语料库 +> +> 其它:使用时的是加载文件,如训练好的权重等 + +![1609826290795](assets/1609826290795.png) + +> 下载一个数据集,使用脚本命令下载,可能需要翻墙,可以访问我的百度云盘进行下载。这里只用到MRPC + + + +#### MRPC + +内容如下: + +![1609827571649](assets/1609827571649.png) + +train.csv: + +![1609827493014](assets/1609827493014.png) + +> 二分类任务:判断两句话是否说的是同一意思 +> +> Quality:是否相同,相同为1 + +test.csv + +![1609827666717](assets/1609827666717.png) + +> 没有了Quality,需要进行预测 + + + +#### download BERT + +把bert的code全部下载下来,并解压到指定目录 + +![1609827887131](assets/1609827887131.png) + + + + + +推荐的pip方式是:pip --default-timeout=100 install 库名字 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com + diff --git a/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609826152438.png b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609826152438.png new file mode 100644 index 0000000..5f2592f Binary files /dev/null and b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609826152438.png differ diff --git a/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609826160982.png b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609826160982.png new file mode 100644 index 0000000..a155c72 Binary files /dev/null and b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609826160982.png differ diff --git a/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609826290795.png b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609826290795.png new file mode 100644 index 0000000..4f872c1 Binary files /dev/null and b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609826290795.png differ diff --git a/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827493014.png b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827493014.png new file mode 100644 index 0000000..44cc377 Binary files /dev/null and b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827493014.png differ diff --git a/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827571649.png b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827571649.png new file mode 100644 index 0000000..153dc5d Binary files /dev/null and b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827571649.png differ diff --git a/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827666717.png b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827666717.png new file mode 100644 index 0000000..ef3f5e2 Binary files /dev/null and b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827666717.png differ diff --git a/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827674985.png b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827674985.png new file mode 100644 index 0000000..ef3f5e2 Binary files /dev/null and b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827674985.png differ diff --git a/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827887131.png b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827887131.png new file mode 100644 index 0000000..7e5f7ae Binary files /dev/null and b/NLP通用框架BERT项目实战/Chapter 2——Interpretation and application examples of Bert source code/assets/1609827887131.png differ