pickle module doens't work
rosuav at gmail.com
Thu Dec 27 14:20:43 CET 2012
On Fri, Dec 28, 2012 at 12:16 AM, Omer Korat
<animus.partum.universum at gmail.com> wrote:
> I see. In that case, all I have to do is make sure NLTK is available when I load the pickled objects. That pretty much solves my problem. Thanks!
> So it means pickle doesn't ever save the object's values, only how it was created?
> Say I have a large object that requires a lot of time to train on data. It means pickle doesn't save its values, so you have to train it every time anew? Is there no way to save its trained values?
It'll save instance data but not class data or code. So it'll save all
that content, and it assumes that class data is either static or will
be recreated appropriately during unpickling.
More information about the Python-list