cnn-text-classification-tf
cnn-text-classification-tf copied to clipboard
UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 6206: illegal multibyte sequence
when i run your code,i got this error,how do i fix it ?Thanks
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
Fixed !
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
fixed!!! thanks