Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 493 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 493 Bytes

word2vecjs

After word2vec came out in C, it been ported to Win32 and MacOS platforms, then on python (gensim). But I haven't found the port to JavaScript (NodeJS).

Limitations

  • Only for learning
  • Only Skip-gram model (no CBOW model)
  • Only Negative sampling (no Hierarchical soft-max)
  • Only single thread
  • Only word2vec executable (no distance, word-analogy, compute-accuracy, word2phrase)

Usage

node bin/word2vec --train data.txt --output vec.txt -size 300 --cbow 0