yangheng95 / PyABSA

Sentiment Analysis, Text Classification, Text Augmentation, Text Adversarial defense, etc.;
https://pyabsa.readthedocs.io
MIT License
923 stars 159 forks source link

加载模型时的报错 #130

Closed MaisieCai closed 2 years ago

MaisieCai commented 2 years ago

bug 这个问题该如何解决

yangheng95 commented 2 years ago

请注意checkpoints版本与PyABSA版本兼容 image

MaisieCai commented 2 years ago

请问要怎么看PyABSA的版本?我是这两天才安装的PyABSA,checkpoints是直接这么传入的checkpoint = 'state_dict/lcf_atepc_cdw'

yangheng95 commented 2 years ago

你安装的应该是最新版1.8.20,请在google drive下载最新checkpoint,百度云上的已经过期

MaisieCai commented 2 years ago

好的,谢谢,我再试试google drive上的