src-d / wmd-relax

Calculates Word Mover's Distance Insanely Fast
Other
460 stars 79 forks source link

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

Open Brittneygogogo opened 5 years ago

Brittneygogogo commented 5 years ago

Environment

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 commented 4 years ago

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