Siamese-LSTM icon indicating copy to clipboard operation
Siamese-LSTM copied to clipboard

Getting Error while loading dwords.p file

Open rakashi opened this issue 7 years ago • 4 comments

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)

rakashi avatar Sep 07 '17 09:09 rakashi

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

aditya1503 avatar Sep 07 '17 15:09 aditya1503

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

rakashi avatar Sep 08 '17 11:09 rakashi

are you using Python 3? it works on Python 2

aditya1503 avatar Sep 11 '17 16:09 aditya1503

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

LuckySherry avatar Nov 10 '17 09:11 LuckySherry