这个链接有个官方解释,但是我看不懂,https://www.cnpython.com/qa/150822,

于是乎,我就自己琢磨琢磨,发现我之前没有导入模块,

from base_word2idx import Word2Idx

导入之后,就没有这个错误了,原理我不懂

pickle.load(open(‘./data/word2idx.pkl‘, ‘rb‘)) 时报错 AttributeError: Can‘t get attribute ‘Word2Idx

相关文章:

  • 2021-06-06
  • 2021-09-02
  • 2022-01-07
  • 2021-05-07
  • 2022-12-23
  • 2022-01-07
  • 2021-09-02
  • 2021-12-16
猜你喜欢
  • 2021-06-16
  • 2021-08-20
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案