Skip to content

像使用sklearn那样来使用bert进行中文文本分类、命名实体识别、句子相似度判别

Notifications You must be signed in to change notification settings

taishan1994/bert-sklearn-chinese

Repository files navigation

bert-sklearn-chinese

像使用sklearn那样来使用bert进行中文文本分类、命名实体识别、句子相似度判别。数据和预训练语言模型下载地址:
链接:https://pan.baidu.com/s/1iUzWoMIzfIYblyTflETYnA
提取码:y3hb
不同的任务中都有训练验证和预测。要替换成自己的数据只需要将数据整理成实例所需的格式即可。

文本分类

python text_classification.py

命名实体识别

python named_entity_recognition.py

文本相似度

python text_pair_classification.py

感谢

https://github.com/CLUEbenchmark/CLUE
https://github.com/charles9n/bert-sklearn
huggingface pytorch-pretrained-BERT github

About

像使用sklearn那样来使用bert进行中文文本分类、命名实体识别、句子相似度判别

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages