-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 1539: invalid start byte #11
Comments
I am getting this error too |
This appears to be related to trying to run nea w/ Python 3. I had this until I switched to Python 2.7. |
@jkdufair even after switching to Python 2.7 i am getting this error: |
I just removed the encoding keyword and it worked! |
I got the same error, and fixed it. and I forked it to try to migrate to python3.6 |
Either you change the python version i.e from python 3 to python 2 |
Can you get the same result as the paper? My Kappa score is between 0.5 and 0.6, and I can't reach the score of the paper. |
By using your method, the result: (left for jkdufair's method and right is generated by python2) @rahuls321, My solution is use |
THIS worked. Thanks ;) |
I was facing same problem, I just added encoding="latin-1" after the file name and the problem get solved |
This worked for me, thank you! :) |
i am facing the same error |
When I run
python preprocess_asap.py -i training_set_rel3.tsv
There are the errors:
Traceback (most recent call last):
File "preprocess_asap.py", line 44, in
dataset = collect_dataset(args.input_file)
File "preprocess_asap.py", line 34, in collect_dataset
for line in f:
File "/home/wyn/anaconda3/envs/py3NLP/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 1539: invalid start byte
I don't know why do I get it?
For help!
The text was updated successfully, but these errors were encountered: