Skip to content

Instantly share code, notes, and snippets.

@khuangaf
Last active February 16, 2018 10:59
Show Gist options
  • Save khuangaf/951da4b42b6a753f5db7e7090b326fd9 to your computer and use it in GitHub Desktop.
Save khuangaf/951da4b42b6a753f5db7e7090b326fd9 to your computer and use it in GitHub Desktop.
from gensim.models import Word2Vec
model = Word2Vec(item_list, size=50, window=5, min_count=5, workers=10, sg=0)
model.wv.save_word2vec_format('data/item_vectors.txt')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment