import gensim.downloader model = gensim.downloader.load("glove-wiki-gigaword-50") def get_embedding(word): global model return model[word]