Bert-Chinese-Text-Classification-Pytorch
Bert-Chinese-Text-Classification-Pytorch copied to clipboard
AttributeError: 'NoneType' object has no attribute 'tokenize'
Traceback (most recent call last):
File "run.py", line 28, in
我也出现这个错误,你解决了吗
没有诶,你现在解决了吗?
@wangling6666 @Cgetier520990 我刚刚拉完代码也有这个问题,从huggingface把vocab.txt下载后放到模型文件夹就行
是因为从网上拉下来的文件名称不一致,要保证名称为vocab.txt并且在bert_pretrian的目录下