gensim.utils.pickle()

gensim.utils.pickle(obj, fname, protocol=2)[source]

Pickle object obj to file fname.

protocol defaults to 2 so pickled objects are compatible across Python 2.x and 3.x.