There are countless applications for word embeddings; one of these is in the field of information retrieval. When humans input keywords and key phrases into search engines, search engines are able to recall and surface specific articles/stories that match those keywords exactly. For example, if we search for articles about dogs, we will get articles that mention the word dog. But what if we search for the word canine? We should still expect to see articles about dogs based on the fact that canines are dogs. Let's implement a simple information retrieval system to showcase the power of word embeddings.
Let's create a function that tries to grab embeddings of individual words from our gensim ...