deeping-flow icon indicating copy to clipboard operation
deeping-flow copied to clipboard

UnicodeDecodeError in corpus.py

Open yuewang1402 opened this issue 6 years ago • 1 comments

Sorry, I have encountered a UnicodeDecodeError when I run the corpus.py with python3.6. The problem is following:

Traceback (most recent call last): File "corpus.py", line 136, in Corpus() File "corpus.py", line 69, in init self.parse_data("data/train.txt", True) File "corpus.py", line 75, in parse_data for line in open(inf): File "/home/guest/Users/Wangyue/virtualenv/tensorflow_py36/lib/python3.6/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 513: invalid continuation byte

Can you help me to solve this problem? Thank you.

yuewang1402 avatar Sep 20 '18 06:09 yuewang1402

which project

ne7ermore avatar Oct 09 '18 01:10 ne7ermore