Bert-Chinese-Text-Classification-Pytorch icon indicating copy to clipboard operation
Bert-Chinese-Text-Classification-Pytorch copied to clipboard

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

Open ooo-bit opened this issue 4 years ago • 6 comments

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

ooo-bit avatar Apr 19 '21 13:04 ooo-bit

也遇到了这个问题

Sprzwty avatar May 12 '21 08:05 Sprzwty

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

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.

Sprzwty avatar May 22 '21 14:05 Sprzwty

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

river-123 avatar Jun 14 '21 09:06 river-123

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

m1109619669 avatar Mar 21 '22 05:03 m1109619669

it's done thx

Nickdustin avatar Mar 23 '23 08:03 Nickdustin

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

问题解决了,谢大佬

DhoomCharlie avatar Sep 15 '23 03:09 DhoomCharlie