New User - getting error on sample sentiment analysis

User 5207 | 5/18/2016, 6:50:15 AM

Getting the below error when trying to run from Notebooks ... any ideas? Installed Graphlab using the installer and wanted to run the sample sentiment analysis.

m = gl.sentiment_analysis.create(data, features=['text'])

IOError Traceback (most recent call last) <ipython-input-4-b1b469ca98b8> in <module>() ----> 1 m = gl.sentiment_analysis.create(data, features=['text'])

/Users/beck/anaconda/envs/dato-env/lib/python2.7/site-packages/graphlab/toolkits/sentimentanalysis/sentimentanalysis.pyc in create(data, target, features, method, validationset) 110 111 else: --> 112 m = gl.loadmodel(modellocalpath) 113 114 else:

/Users/beck/anaconda/envs/dato-env/lib/python2.7/site-packages/graphlab/toolkits/model.pyc in loadmodel(location) 101 else: 102 internalurl = makeinternalurl(location) --> 103 return glconnect.getunity().loadmodel(internal_url) 104 105

graphlab/cython/cyunity.pyx in graphlab.cython.cyunity.UnityGlobalProxy.load_model()

graphlab/cython/cyunity.pyx in graphlab.cython.cyunity.UnityGlobalProxy.load_model()

IOError: Unable to load model from /var/tmp/modelcache/sentiment-combined/1: Cannot open /var/tmp/modelcache/sentiment-combined/1/m3a782fd6e221e53c.frameidx for read. Cannot open /var/tmp/modelcache/sentiment-combined/1/m3a782fd6e221e53c.frameidx for reading: unspecified iostreamcategory error: unspecified iostreamcategory error: unspecified iostreamcategory error: unspecified iostream_category error


User 1774 | 5/18/2016, 5:13:12 PM

Hi David,

GraphLab caches some pre-trained models, and it seems these models got corrupted. If you’ll delete everything under /var/tmp/model_cache/sentiment-combined/1/ then your code should work again. $ rm -rf /var/tmp/model_cache/sentiment-combined/1

See also: