python 2.7 - Why won't my nltk classification model persist with joblib? -



python 2.7 - Why won't my nltk classification model persist with joblib? -

i've noticed others have had problems on different operating systems , i've heard there may within module disallows loading persistent classification model. i'm using mac python 2.7 , enthought canopy's editor.

this i'm using export , appears work:

joblib.dump(classifier, 'nbv1.pkl')

and i'm using import via shell:

joblib.load('nbv1.pkl')

this error get:

attributeerror: 'freqdist' object has no attribute '_n'

i'm assuming means model not exporting properly. have not been able automate export process within programme , must shell.

thank much advice.

i believe due compatibility issue nltk classifiers.

python-2.7 persistence nltk joblib

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -