I am getting the problem while trying to pickle Arabic text to store it in a variable. This is code:
# load the train data & store it..
with open('files/0007.txt', 'rb') as f:
train_data = pickle.load(f)
Error:
UnpicklingError Traceback (most recent call last)
<ipython-input-5-fa360e8454ee> in <module>
1 # load the train data & store it in a file
2 with open('files/0007.txt','rb') as f:
----> 3 train_data=pickle.load(f)
UnpicklingError: invalid load key, '\xd8'.