stevezheng23 / xlnet_extension_tf

XLNet Extension in TensorFlow
Apache License 2.0
130 stars 26 forks source link

AttributeError: 'module' object has no attribute 'XLNetConfig' #21

Open Yuqi92 opened 5 years ago

Yuqi92 commented 5 years ago

Thanks for your work on xlnet extension! It is quite impressive with how quickly this has been done. I have a question with importing xlnet package. When I tried running NER experiment, I got an error in line 753 of run_ner.py, saying that "AttributeError: 'module' object has no attribute 'XLNetConfig'". Do you have any idea why xlnet.XLNetConfig is not successfully imported here?

Screen Shot 2019-06-27 at 10 28 35 AM

Thanks in advance for your answer!

stevezheng23 commented 5 years ago

@Yuqi92 Could you share with me the environment setting (e.g. OS, version, etc.) of your experiment so I can repro the issue? Meanwhile please also check whether submodule code under 'xlnet' folder is correctly synced to specified commit:)

stevezheng23 commented 5 years ago

I have repro the issue when xlnet submodule is using the latest commit instead of commit 8f17cf. The latest change has updated xlnet_extension_tf repo to use newer commit 4c83f2f for xlnet submodule