How can I count word frequencies in Word2Vec's training model?
问题 I need to count the frequency of each word in word2vec 's training model. I want to have output that looks like this: term count apple 123004 country 4432180 runs 620102 ... Is it possible to do that? How would I get that data out of word2vec? 回答1: Which word2vec implementation are you using? In the popular gensim library, after a Word2Vec model has its vocabulary established (either by doing its full training, or after build_vocab() has been called), the model's wv property contains a