emb-rep / FastAPI /app /utils /embedding.py
abadesalex's picture
plot and logic
8765030
raw
history blame
150 Bytes
import gensim.downloader
model = gensim.downloader.load("glove-wiki-gigaword-50")
def get_embedding(word):
global model
return model[word]