649453932 / Bert-Chinese-Text-Classification-Pytorch

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

OSError: Can't load the model for 'D:\Bert-Chinese-Text-Classification-Pytorch-master\THUCNews\saved_dicert.ckpt'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'D:\Bert-Chinese-Text-Classification-Pytorch-master\THUCNews\saved_dicert.ckpt' is the correct path to a di rectory containing a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack. #182

Open zhangwenjie4426260 opened 11 months ago

zhangwenjie4426260 commented 11 months ago

请问一下,微调之后生成了一个bert.ckpt文件,我在调用它进行新的文本预测时,一直报错。显示加载不出来这个模型文件,应该怎么解决呀?是识别不了.ckpt文件嘛?需要转换文件格式?有大佬知道嘛,非常感谢!!!