import numpy as np
from gensim.models import Word2Vec
from gensim.models.word2vec import LineSentence
np.savetxt('train_data.txt', arr, delimiter=' ', fmt='%s')
sentences = LineSentence('train_data.txt')
model = Word2Vec(sentences)
Gensim word2vec on predefined dictionary and word-indices data