Skip to content

Instantly share code, notes, and snippets.

@HeenaR17
Created December 21, 2020 16:40
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/999bd4dbdde458da916139efe38d5f0d to your computer and use it in GitHub Desktop.
Save HeenaR17/999bd4dbdde458da916139efe38d5f0d to your computer and use it in GitHub Desktop.
!wget -P /root/vectors/ -c "https://s3.amazonaws.com/dl4j-distribution/GoogleNews-vectors-negative300.bin.gz"
GOOGLE_NEWS_VECTORS = '/root/vectors/GoogleNews-vectors-negative300.bin.gz'
word2vec = KeyedVectors.load_word2vec_format(GOOGLE_NEWS_VECTORS, binary=True)
print("Vectors loaded successfully: "+str(len(word2vec.vocab)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment