Skip to content

Instantly share code, notes, and snippets.

View fedegonzal's full-sized avatar

Federico González Brizzio fedegonzal

  • Vienna, Austria
View GitHub Profile
from gensim.models import KeyedVectors
# Load gensim word2vec
w2v_path = '<Gensim File Path>'
w2v = KeyedVectors.load_word2vec_format(w2v_path)
import io
# Vector file, `\t` seperated the vectors and `\n` seperate the words
"""