649453932 / Bert-Chinese-Text-Classification-Pytorch

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

unable to parse D:/Bert-Chinese-Text-Classification-Pytorch\bert as a URL or as a local path #91

Open cfy42584125 opened 3 years ago

cfy42584125 commented 3 years ago

image 写了一个预测的句子,跑的时候在cached_path这个类里面报错

BGMYE commented 2 years ago

解决了吗

xuanxuanxuanxuan commented 6 months ago

预测代码中的一行改成这样: self.bert_path = os.path.join(cru, 'bert_pretrain'),它这是找不到路径