Skip to content

stop = pickle.load(open('movieclassifier/pkl_objects/stopwords.pkl', 'rb')) is not working. #1

@mickymartin

Description

@mickymartin

i am executing your source.
however, when i execute api.py i can get following errors.

"Traceback (most recent call last):
File "E:/work/phython/ml-integration/ml-int/textsummarizersvc/api.py", line 15, in
import movieclassifier as mc
File "E:\work\phython\ml-integration\ml-int\textsummarizersvc\movieclassifier.py", line 5, in
from vectorizer import vect
File "E:\work\phython\ml-integration\ml-int\textsummarizersvc\vectorizer.py", line 7, in
stop = pickle.load(open('movieclassifier/pkl_objects/stopwords.pkl', 'rb'))
File "C:\Python27\lib\pickle.py", line 1384, in load
return Unpickler(file).load()
File "C:\Python27\lib\pickle.py", line 864, in load
dispatchkey
File "C:\Python27\lib\pickle.py", line 892, in load_proto
raise ValueError, "unsupported pickle protocol: %d" % proto
ValueError: unsupported pickle protocol: 4"

i want you to help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions