gensim word2vec accessing in/out vectors

后端 未结 4 708
一个人的身影
一个人的身影 2021-02-07 09:02

In the word2vec model, there are two linear transforms that take a word in vocab space to a hidden layer (the \"in\" vector), and then back to the vocab space (the \"out\" vecto

4条回答
  •  面向向阳花
    2021-02-07 09:30

    While this might not be a proper answer (can't comment yet) and noone pointed this out, take a look here. The creator seems to answer a similar question. Also that's the place where you have a higher chance for a valid answer.

    Digging around in the link he posted in the word2vec source code you could change the syn1 deletion to suit your needs. Just remember to delete it after you're done, since it proves to be a memory hog.

提交回复
热议问题