https://github.com/chainer/chainer
Raw File
Tip revision: a3c428a32905052e33fc6427f5bfd8ae4b782f79 authored by niboshi on 18 July 2019, 08:49:44 UTC
Merge pull request #7779 from chainer/revert-7774-py2-drop-in-v7
Tip revision: a3c428a
README.md
# Word Embedding

This is an example of word embedding.
We implemented Mikolov's Skip-gram model and Continuous-BoW model with Hierarchical softmax and Negative sampling.

Run `train_word2vec.py` to train and get `word2vec.model` which includes embedding data.
You can find top-5 nearest embedding vectors using `search.py`.

This example is based on the following word embedding implementation in C++.
https://code.google.com/p/word2vec/
back to top