Skip to content

Instantly share code, notes, and snippets.

@DerekChia
Last active December 1, 2018 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerekChia/d0c318942383828e41c3f560c52dce11 to your computer and use it in GitHub Desktop.
Save DerekChia/d0c318942383828e41c3f560c52dce11 to your computer and use it in GitHub Desktop.
w2v_generate_training_data_2
# Initialise object
w2v = word2vec()
# Numpy ndarray with one-hot representation for [target_word, context_words]
training_data = w2v.generate_training_data(settings, corpus)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment