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 | |
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 | |