pretraining glove readable model into word2vec

To download the training model used to tensorflow need to mark the line's first two parameters of the model,

 

Use gensim tool can be used, after install the package, the following code is executed.

 

python -m gensim.scripts.glove2word2vec -i glove.6B.300d.txt -o glove.6B.300d.word2vec.txt

 

Guess you like

Origin www.cnblogs.com/hanxinle/p/11839488.html