Comments (6)
I've got the same issue. I traced back to wmd.py, it turned out that the Python.h is not found in emd.h. Someone could help?
from wmd.
me too.
wmd> python wmd.py SMERP_only_text.pk SMERP_only_text_wmd.pk
Traceback (most recent call last):
File "wmd.py", line 4, in
from emd import emd
File "python-emd-master/emd.py", line 25, in
_emd = swig_import_helper()
File "python-emd-master/emd.py", line 17, in swig_import_helper
import _emd
ImportError: No module named _emd
from wmd.
you can use pyemd instead, which gensim using this package too.
pip install pyemd
from wmd.
you should first build emd in python-master-emd
from wmd.
Has anyone come across a solution to this? When I run build
in python-emd-master, I get the error
Linking wrapper library '_emd.so'. -n ld -shared -o _emd.so emd.o emd_wrap.o ld: unknown option: -shared make: *** [_emd.so] Error 1 rm emd_wrap.o emd.o emd_wrap.c
So it looks like emd isn't being built properly
from wmd.
I've installed swig and build emd with 'make' command
but it still gives the error
ImportError: No module named _emd
from wmd.
Related Issues (20)
- emd: Signature size exceeds 100 HOT 1
- Is it possible to use GloVe with your code? HOT 1
- Makefile:51: recipe for target 'emd_wrap.c' failed HOT 1
- Does this code run in python 3? HOT 3
- Makefile:45: recipe for target 'emd.o' failed
- installation issues HOT 1
- technology independent output file HOT 1
- Error: emd: Signature size is limited to 100 HOT 2
- Obtaining flow information through python interfance
- i want to use WMD to train chinese data,there's some errors ,plz help me! HOT 1
- installation issues solved
- install error=> ld: unknown option: -shared HOT 1
- Do i need Matlab to run or change the code ?
- Deadlock in Multiprocessing
- problem with WCD HOT 3
- when i run python2 example1.py ,i got this problem:
- Quality performance compared to Sørensen–Dice coefficient
- Current wmd implementation does not match GenSim HOT 1
- there are lots of NaN's in the distance matrix for the example dataset HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wmd.