cnn-text-classification-tf icon indicating copy to clipboard operation
cnn-text-classification-tf copied to clipboard

UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 6206: illegal multibyte sequence

Open wqpod2g opened this issue 8 years ago • 4 comments

when i run your code,i got this error,how do i fix it ?Thanks

wqpod2g avatar Feb 16 '17 13:02 wqpod2g

Add encoding parameter at line 34 and 36 in data_helpers.py like the following:

positive_examples = list(open(positive_data_file, "r", encoding='utf-8').readlines())

ref in stackoverflow

frqc avatar Mar 14 '17 06:03 frqc

Fixed !

linrio avatar May 04 '17 15:05 linrio

you can fix this by the way of Installing from source

1,Download the latest source tarball from https://github.com/sshwsfc/django-xadmin or git clone the repository. Then execute the following in the project directory:

2,pip install -r requirements.txt

junweipan avatar Feb 26 '18 01:02 junweipan

fixed!!! thanks

xiejcboy avatar Apr 29 '19 12:04 xiejcboy