word2vec icon indicating copy to clipboard operation
word2vec copied to clipboard

Potentially a bug of resetting vocab size when a vocab file is specified

Open zyxue opened this issue 7 years ago • 0 comments

If a -read-vocab file is specified, then all their counts are 0, it seems SortVocab() will remove all words in such case.

https://github.com/dav/word2vec/blob/5f2e9661025c4f6b496c6a6888be0d090b9c44b3/src/word2vec.c#L323

https://github.com/dav/word2vec/blob/5f2e9661025c4f6b496c6a6888be0d090b9c44b3/src/word2vec.c#L155

zyxue avatar May 23 '18 02:05 zyxue