Kyubyong / name2nat

name2nat: a Python package for nationality prediction from a name

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

报错AttributeError: 'DocumentRNNEmbeddings' object has no attribute '_load_state_dict_post_hooks'

pli29-ctrip opened this issue · comments

按照文档要求,初始化时报错
AttributeError: 'DocumentRNNEmbeddings' object has no attribute '_load_state_dict_post_hooks'
python3.7版本

Hi, I am having this issue as well! Python 3.7 here too.

I have fixed this by:

  • using python 3.7
  • using pythorch 1.4.0 (conda install pytorch==1.4.0 torchvision==0.5.0 -c pytorch)
  • using flair 0.6

Getting the same error!

Same issue here - any solution @Kyubyong ?