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

i want to use WMD to train chinese data,there's some errors ,plz help me! #20

Open
15611511155 opened this issue Aug 28, 2017 · 1 comment

Comments

@15611511155
Copy link

15611511155 commented Aug 28, 2017

root@user-virtual-machine:/home/user/WMD# python wmd.py asd.pk asdwmd.pk
[pool :] <multiprocessing.pool.Pool object at 0x7f327f1cc150>
0 out of 3
1 out of 3
emd: Signature size is limited to 100
2 out of 3
emd: Signature size is limited to 100


stop.txt and training data all use in chinese. how can i solve this problem???

@kfzyqin
Copy link

kfzyqin commented Jun 12, 2018

#18

you have to modify some lines in "python-emd-master\emd.h" (for python) or "emd\emd.h" (for matlab )

find definitions and edit MAX_SIG_SIZE
#define MAX_SIG_SIZE 100
change 100 to bigger number (actually, the size of biggest document BOW).
remember that you must re-make.

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