Convert bin model to pickle
I trained a word2vec model using Gensim library which is of type .bin
Q1: can we convert this trained model in bin format to pickle?
Q2: would it speed up the execution time?
Category Data Science
I trained a word2vec model using Gensim library which is of type .bin
Q1: can we convert this trained model in bin format to pickle?
Q2: would it speed up the execution time?
Category Data Science
Pickle is not a format but a protocol to serialize a python object to binary format. In the documentation of gensim, you can read they actually use pickle for serializing to binary format.
You can of course use pickle library instead of the .save
method in gensim, but it will be exactly the same, since gensim already use pickle. I would recommend you to use .save
method however, because gensim likely has better way to handle the hierarchical structure and dependencies of your model.
Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.