stanfordnlp / GloVe

Software in C and data files for the popular GloVe model for distributed word representations, a.k.a. word vectors or embeddings
Apache License 2.0
6.86k stars 1.51k forks source link

Strange break #59

Closed hfxunlp closed 7 years ago

hfxunlp commented 7 years ago

I'm trying to compile a GloVe for Windows(https://github.com/anoidgit/GloVe-win), I have done the job for word2vec(https://github.com/anoidgit/word2vec-win) and it passed all the test. But for GloVe, the vocab_count and cooccur could work correctly, the shuffle can work but not correctly, the GloVe just break after it print "alpha:0.750000", before sizeof and malloc, I have try to print something before the malloc(https://github.com/stanfordnlp/GloVe/blob/master/src/glove.c#L306), but it did not print the test string. I do not know why and hope you could help me if you can. Thank you.

hfxunlp commented 7 years ago

There are shuffle(https://github.com/anoidgit/GloVe-win/blob/master/devc/x64/shuffle/shuffle.c) and glove(https://github.com/anoidgit/GloVe-win/blob/master/devc/x64/glove/glove.c) I used to compile.

hfxunlp commented 7 years ago

The sizeof passed, It is because of malloc, and I'm trying to find out why.