glove-twitter-25 / __init__.py
osanseviero's picture
Add initial glove model
b2fee8a
raw
history blame contribute delete
254 Bytes
import os
from gensim.models import KeyedVectors
from gensim.downloader import base_dir
def load_data():
path = os.path.join(base_dir, 'glove-twitter-25', 'glove-twitter-25.gz')
model = KeyedVectors.load_word2vec_format(path)
return model