Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'wmd' has no attribute 'WMD' #48

Open
Brittneygogogo opened this issue Mar 26, 2019 · 1 comment
Open

module 'wmd' has no attribute 'WMD' #48

Brittneygogogo opened this issue Mar 26, 2019 · 1 comment

Comments

@Brittneygogogo
Copy link

Brittneygogogo commented Mar 26, 2019

Environment

  • spacy 2.0.12
  • wmd 1.3.0

Code

import spacy
import wmd
import en_core_web_sm

nlp = en_core_web_sm.load()
wmd_instance = wmd.WMD.SpacySimilarityHook(nlp)

Error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
**AttributeError: module 'wmd' has no attribute 'WMD'**

Does anyone knows how to fix this error? Thanks!

@bwindsor22
Copy link

Do you have another module or folder named "wmd" in your directory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants