Discussion:
[gensim:11730] Load pretrained word embedding to gensim
Shahab R
2018-10-31 03:30:18 UTC
Permalink
Hi,

Is there any way I can load a pretrained vector space (not created by
gensim) to gensim to be able to use its functions?

To clarify, we can load a set of corpora andmodels using api or we can
train our own vectors on a corpus. But is there any way to load a vector
space from a text file in GloVe format?
--
You received this message because you are subscribed to the Google Groups "Gensim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gensim+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andrey Kutuzov
2018-10-31 12:40:36 UTC
Permalink
Hi,

Use load_word2vec_format() function.
Post by Shahab R
Hi, 
Is there any way I can load a pretrained vector space (not created by
gensim) to gensim to be able to use its functions?
To clarify, we can load a set of corpora andmodels using api or we can
train our own vectors on a corpus. But is there any way to load a vector
space from a text file in GloVe format?
--
You received this message because you are subscribed to the Google Groups "Gensim" group.
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Solve et coagula!
Andrey
--
You received this message because you are subscribed to the Google Groups "Gensim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gensim+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Shahab R
2018-10-31 21:43:59 UTC
Permalink
Thank, I just had to add the "<vocab_size> <vector_size>" as the first line
Post by Andrey Kutuzov
Hi,
Use load_word2vec_format() function.
Post by Shahab R
Hi,
Is there any way I can load a pretrained vector space (not created by
gensim) to gensim to be able to use its functions?
To clarify, we can load a set of corpora andmodels using api or we can
train our own vectors on a corpus. But is there any way to load a vector
space from a text file in GloVe format?
--
You received this message because you are subscribed to the Google
Groups "Gensim" group.
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Solve et coagula!
Andrey
--
You received this message because you are subscribed to the Google Groups "Gensim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gensim+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...