word2vec in yhat: Word vector similarity
danielfrg.github.io
word2vec in yhat: Word vector similarity
1–10 of 16 posts
Re: word2vec in yhat: Word vector similarity
#2Are there really only 1000 independent concepts in the English language?
Re: word2vec in yhat: Word vector similarity
#3Word2vec seemed intuitively obvious me, but I really have a hard time believing that it works in only 1000 dimensions, generating results beyond cherry picked demo examples. Are there really only 1000 independent concepts in the English language?
So with 1000 continuous dimensions (typically values between -1 and 1 coded on 32 bit floats) you can encode quite a bunch of concepts and their nuances.
Note: the default dimensionality of word2vec is 100 instead of 1000. Apparently you can get better results with dim=300 and a very large training corpus. To leverage higher dimensions you need: more CPU time to reach convergence and a lot more data to leverage the added model capacity.
Re: word2vec in yhat: Word vector similarity
#4Word2vec seemed intuitively obvious me, but I really have a hard time believing that it works in only 1000 dimensions, generating results beyond cherry picked demo examples. Are there really only 1000 independent concepts in the English language?
Re: word2vec in yhat: Word vector similarity
#5My HN submission of this endeavour received no love, but I think it's worthwhile nevertheless as the Python code is not only more concise, readable and extendable, but the training's actually faster too [2].
[1] https://github.com/piskvorky/gensim/blob/develop/gensim/mode...
[2] http://radimrehurek.com/2013/09/word2vec-in-python-part-two-...
Re: word2vec in yhat: Word vector similarity
#6For people interested in a cleaned-up, commented and de-obfuscated word2vec, I recently ported the original C code to Python [1]. My HN submission of this endeavour received no love, but I think it's worthwhile nevertheless as the Python code is not only more concise, readable and extendable, but the training's actually faster too [2]. [1] https://github.com/piskvorky/gensim/blob/develop/gensim/mode... [2] http://rad…
That is some amazing work, thanks!
Re: word2vec in yhat: Word vector similarity
#7And the paper itelf is a very worthwhile read: http://arxiv.org/abs/1301.3781
Re: word2vec in yhat: Word vector similarity
#8Word2vec seemed intuitively obvious me, but I really have a hard time believing that it works in only 1000 dimensions, generating results beyond cherry picked demo examples. Are there really only 1000 independent concepts in the English language?
FWIW, 2^61 > 26^5, so even the binary vector 2^1000 has an expressive space about 2^939 times larger than 26^5 (all possible words up to 5 letters).
Re: word2vec in yhat: Word vector similarity
#9Re: word2vec in yhat: Word vector similarity
#10For people interested in a cleaned-up, commented and de-obfuscated word2vec, I recently ported the original C code to Python [1]. My HN submission of this endeavour received no love, but I think it's worthwhile nevertheless as the Python code is not only more concise, readable and extendable, but the training's actually faster too [2]. [1] https://github.com/piskvorky/gensim/blob/develop/gensim/mode... [2] http://rad…