mpeds icon indicating copy to clipboard operation
mpeds copied to clipboard

Error running example script

Open megawattncsu opened this issue 5 years ago • 3 comments

I'm getting the following error when I try to test the example-lexisnexis.py file

sh-4.2# python example-lexisnexis.py Added 348 articles, skipped 0 abstracts Loading vectorizer... Traceback (most recent call last): File "example-lexisnexis.py", line 26, in df['y'] = mobj.haystack(df['TEXT']) File "/src/mpeds/classify_protest.py", line 68, in haystack self.hay_vect = joblib.load(resource_filename(name, 'classifiers/haystack-vect_all-source_2017-05-24.pkl')) File "/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 598, in load obj = _unpickle(fobj, filename, mmap_mode) File "/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 526, in _unpickle obj = unpickler.load() File "/usr/local/lib/python2.7/pickle.py", line 858, in load dispatchkey KeyError: 'v'

I'm not sure how to fix this.

megawattncsu avatar Feb 07 '21 20:02 megawattncsu

Just wondering if anyone might be able to help with this.

megawattncsu avatar Feb 12 '21 02:02 megawattncsu

Sorry for this -- have you installed Git LFS?

alexhanna avatar Feb 12 '21 02:02 alexhanna

Yes, I do have that installed.

On Thu, Feb 11, 2021 at 9:38 PM Alex Hanna [email protected] wrote:

Sorry for this -- have you installed Git LFS?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MPEDS/mpeds/issues/25#issuecomment-777930357, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASEYPEHCU3O2YJ72VQBYBE3S6SIB7ANCNFSM4XH2WVVQ .

-- Meghan A. Watts Graduate Student Department of Sociology & Anthropology North Carolina State University [email protected] 1911 Building, Office 351

Pronouns: She/They

megawattncsu avatar Feb 12 '21 15:02 megawattncsu