stevezheng23 / xlnet_extension_tf

XLNet Extension in TensorFlow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Yuqi92 opened this issue · comments

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!

@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:)

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