pickle module doens't work

Omer Korat animus.partum.universum at gmail.com
Tue Jan 1 09:33:27 EST 2013


I am using the nltk.classify.MaxEntClassifier. This object has a set of labels, and a set of probabilities: P(label | features). It modifies this probability given data. SO for example, if you tell this object that the label L appears 60% of the time with the feature F, then P(L | F) = 0.6. 
The point is, there is no way to access the probabilities directly. The object's 'classify' method uses these probabilities, but you can't call them as an object property. 
In order to adjust probabilities, you have to call the object's 'train' method, and feed classified data in.
So is there any way to save a MaxEntClassifier object, with its classification probabilities, without having to call the 'train' method?



More information about the Python-list mailing list