Skip to content

Instantly share code, notes, and snippets.

David tmdavid

  • Barcelona
Block or report user

Report or block tmdavid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tmdavid
tmdavid / word_embedding_vis.py
Last active Sep 20, 2019
Visualize word embeddings, using tsne.
View word_embedding_vis.py
"""
Visualize word embeddings, using tsne.
First computes cosine distance of the 100 closests words, and then shows a clustering graph
of the first 11 closest words (the first one is always the word)
IT REQUIRES GLOVE MODEL.txt
line 31: glove_file = '../TBIR/glove.840B.300d.txt' MODIFY with the appropiate path
To Use it, you can just type: python word_embedding_vis.py <list of words space separated>
e.g: python word_embedding_vis.py cake word embedding music
"""
You can’t perform that action at this time.