Planeshifter / node-word2vec

Node.js interface to the Google word2vec tool.
Apache License 2.0
348 stars 55 forks source link

Vec2Word #1

Closed silentrob closed 9 years ago

silentrob commented 9 years ago

Given the example provided. vector('king') - vector('man') + vector('woman')

It would be nice to be able to pass in the raw vector and get the word.

Planeshifter commented 9 years ago

I have added functions getNearestWord and getNearestWords which allow one to retrieve the word(s) closest to the supplied input vector. Additionally, there are now functions to perform addition and subtraction of word vectors. Pushed a new version of the package, 0.6.0, to npm. Hope you find the additions useful.

silentrob commented 9 years ago

Thanks so much! Looking forward to playing with it!

Planeshifter commented 9 years ago

Let me know if you run into any problems. Best, Philipp

soumyadeep-kundu commented 7 years ago

Can anyone tell me how to get words from vectors i.e. vec2word?

ishitaarora05 commented 4 years ago

Hi Philipp! I am trying to implement vec2word but facing issues with the code.

Do you have any code with you that I can implement or if I can share my code with you? Please let me know. Thank you