We all are gone through several questions of Analogies like Man is to Woman, as king is to queen and many more questions like this.
After answering several such types of question we get bored and now we want that our computer to automatically answer these questions for the provided question and its options.
Here is an Application created using python GUI framework Tkinter which is able to answer such types of questions.
Which uses the simple concept of Word embeddings and Cosine Similarity.
Word Embeddings are the numeric vector representation of a word, a vector associated with a word is sufficient enough to represent that word in every context. and cosine Similarity is the measure of similarity between two non-zero vectors.
Here, I'm using glove word embedding and the concept of cosine similarity to make such types of analogies.
- Glove6B dataset Link
- Python 3.5
- Numpy
- Tkinter
$ python3 gui.py
this gui is made using python Tkinter package
Here, some glimpses of Best results which i have got during testing.