from load import load_glove import numpy as np dataset = load_glove('../glove/glove_50k_50.txt') np.save('../glove/glove_50k_50.npy', dataset) from to_fvecs import data_to_fvecs data_to_fvecs(dataset, '../glove/glove_50k_50.fvecs')