- 文本分类数据集采用今日头条今日头条客户端收集的数据,具体链接:https://github.com/BenDerPan/toutiao-text-classfication-dataset
- 命名实体识别数据集采用微软亚洲研究院提供的词性标注数据集,具体链接:https://mirror.coggle.club/dataset/ner/msra.zip
bert-cls-example.ipynb
bert-cls.py
- CSDN链接: https://blog.csdn.net/abc13526222160/article/details/122051583?spm=1001.2014.3001.5501
- BERT分类模型如下:
bert-ner-example.ipynb
bert-ner.py
- CSDN链接: https://blog.csdn.net/abc13526222160/article/details/122052004?spm=1001.2014.3001.5501
- BERT命名实体识别模型如下: