Following is my code:
import gzip
import _pickle as cPickle
filename = "C:\\Users\\tende\\Desktop\\NLP\\hw2_package\\atis.small.pkl.gz"
f = gzip.open(filename,'rb')
train_set, valid_set, test_set, dicts = cPickle.load(f)
I am getting this error:
import gzip
import _pickle as cPickle
filename = "C:\\Users\\tende\\Desktop\\NLP\\hw2_package\\atis.small.pkl.gz"
f = gzip.open(filename,'rb')
train_set, valid_set, test_set, dicts = cPickle.load(f)
Traceback (most recent call last):
File "<ipython-input-27-aecb21b3784f>", line 6, in <module>
train_set, valid_set, test_set, dicts = cPickle.load(f)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 8: ordinal not in range(128)
Please tell me where am I going wrong. I am using Python 3.6.2