aditya1503 / Siamese-LSTM

Siamese Recurrent Neural network with LSTM for evaluating semantic similarity between sentences.
200 stars 68 forks source link

Getting Error while loading dwords.p file #17

Open rakashi opened 7 years ago

rakashi commented 7 years ago

Traceback (most recent call last): File "/home/bindu/Desktop/text similarity/Siamese-LSTM-master/SiameseLSTM.py", line 403, in dtr=pickle.load(open("./dwords.p",'rb')) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4: ordinal not in range(128)

aditya1503 commented 7 years ago

export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8

rakashi commented 7 years ago

export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 where I have to set these properties, I tried by setting in bashrc file but I am still getting the same error again

I have installed h5py library also

Traceback (most recent call last): File "alignDraw.py", line 3, in import h5py File "/home/monica/.local/lib/python2.7/site-packages/h5py/init.py", line 24, in from . import _errors ImportError: /home/monica/.local/lib/python2.7/site-packages/h5py/_errors.so: undefined symbol: PyUnicodeUCS4_DecodeUTF8

Please help me

aditya1503 commented 7 years ago

are you using Python 3? it works on Python 2

LuckySherry commented 6 years ago

try dtr=pickle.load(open("./dwords.p",'rb'), encoding='latin1')