bert分类实例,在本地win10下
我的bert分类项目地址(有数据,本地win10可运行):https://github.com/yongzhuo/bert,但是预测调用好像不方便,
我另外一个项目bert分类实例,可predict,很方便:https://github.com/yongzhuo/nlp_xiaojiang/tree/master/ClassificationText/bert
备注: model.ckpt-15.data-00000-of-00001有400M传不上github,
这个chinese_L-12_H-768_A-12预先训练好的模型先去谷歌下载替换吧
如果下载不了,也可以去百度云,我放了一个上去前往链接: https://pan.baidu.com/s/1I3vydhmFEQ9nuPG2fDou8Q 提取码: rket
运行直接 run_classifier.py 就可以了
环境:tensorflow 1.11及以上 |