UnicodeDecodeError
indiclinguist opened this issue · 3 comments
I am getting the following error. Can anyone please help how to resolve this?
==========
pd = PredPatt.from_sentence(sen)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/predpatt/patt.py", line 385, in from_sentence
parse = _PARSER(sentence)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/predpatt/util/UDParser.py", line 102, in call
s = s.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 16: invalid continuation byte
Can you post a snippet of code so we can reproduce the error?
I just posted another issue "Fatal error". I have given the codes that I used. For some sentences, I get the UnicodeDecodeError and for some other it is a fatal error and crash.
Close this duplicated issue.