Export R text2vec Vectors for use in Gensim in Python

255 Views Asked by At

I have created GloVE vectors in R previously using text2vec library.

Is there any easy way to export these for use in Python where I have scripts to compare/contract with Gensim created word vectors? I know there is a specific word2vec c_format, but Im not sure if R has the capability of producing this.

1

There are 1 best solutions below

0
AudioBubble On

You should have a look at the word2vec R package https://cran.r-project.org/web/packages/word2vec/index.html. It has facilities to write the wordvectors in binary and text format. See http://bnosac.be/index.php/blog/100-word2vec-in-r