Skip to content

Instantly share code, notes, and snippets.

@HeenaR17
Created December 21, 2020 16:42
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 HeenaR17/710d5b3ca5ffc39a0f4c97fc781c9752 to your computer and use it in GitHub Desktop.
Save HeenaR17/710d5b3ca5ffc39a0f4c97fc781c9752 to your computer and use it in GitHub Desktop.
keywords = [["winter"], ["man"], ["king"]]
for w in keywords:
word = w[0]
print("Word: "+word)
vector = word2vec.get_vector(word)
print("Vector length: {}".format(len(vector)))
print(vector)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment