649453932 / Bert-Chinese-Text-Classification-Pytorch

使用Bert,ERNIE,进行中文文本分类
MIT License
4.02k stars 898 forks source link

关于 'NoneType' object has no attribute 'tokenize' #86

Open ooo-bit opened 3 years ago

ooo-bit commented 3 years ago

请教一下大家,我遇到这个问题应该如何解决!感谢! 啊

Sprzwty commented 3 years ago

也遇到了这个问题

Sprzwty commented 3 years ago

解决了,我自己修改了一部分代码解决了这个问题。

2021年5月21日 22:16,AnnieWX @.***> 写道:

请问解决了吗?是什么原因呀。。。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/649453932/Bert-Chinese-Text-Classification-Pytorch/issues/86#issuecomment-845981104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR5VV3NZ4GSZIMUVR6IEWDDTOZTLFANCNFSM43F2ZFBA.

river-123 commented 3 years ago

刚刚解决,强答一波造福朋友们:如果vocab也是对的,请看一下models里面,self.bert_path = './bert_pretrain',把=后面改成全路径,就可以跑动了~

m1109619669 commented 2 years ago

python -m pip install --upgrade pip==9.0.3 pip降个级就完事了

Nickdustin commented 1 year ago

it's done thx

DhoomCharlie commented 1 year ago

刚刚解决,强答一波造福朋友们:如果vocab也是对的,请看一下models里面,self.bert_path = './bert_pretrain',把=后面改成全路径,就可以跑动了~

问题解决了,谢大佬