Convert Python dictionary to Word2Vec object
问题 I have obtained a dictionary mapping words to their vectors in python, and I am trying to scatter plot the n most similar words since TSNE on huge number of words is taking forever. The best option is to convert the dictionary to a w2v object to deal with it. 回答1: I had the same issue and I finaly found the solution So, I assume that your dictionary looks like mine d = {} d['1'] = np.random.randn(300) d['2'] = np.random.randn(300) Basically, the keys are the users' ids and each of them has a