Last active
December 1, 2018 11:11
-
-
Save DerekChia/d0c318942383828e41c3f560c52dce11 to your computer and use it in GitHub Desktop.
w2v_generate_training_data_2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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