Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the interpretation of similar words based on embeddings? #11

Open
rohit-das opened this issue Jan 28, 2020 · 1 comment
Open

Comments

@rohit-das
Copy link

For direct word embedding the output made sense

# natural language modeling embeddings
get_similar_words("horrible", word_embeddings)
# horrible  terrible     awful       bad    acting 
# 1.0000000 0.9248301 0.8892507 0.8432761 0.8015473 

But how do we understand the relationship between words generated by word embeddings learned from classification

similar_classification_words("horrible", embedding_wts)
# horrible     keith    brooks     blond      york  sporting 
# 1.0000000 0.7858497 0.7819669 0.7724826 0.7616312 0.7583101 

Is there a way to put this in better context?

@OmaymaS
Copy link
Contributor

OmaymaS commented Jan 28, 2020

When you get embeddings learned from classification, the results will depend on the underlying data, labels, embedding size, how good the model is. Maybe those words appear together in your dataset. Also you could experiment with the embedding layer size (think about it as number of features representing each word) and retrain the model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants