Skip to content

Error running example script #25

@megawattncsu

Description

@megawattncsu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions