File size: 254 Bytes
b2fee8a |
1 2 3 4 5 6 7 8 9 10 |
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
|