ltp icon indicating copy to clipboard operation
ltp copied to clipboard

newbug: cannot be loaded on Windows

Open znsoftm opened this issue 3 years ago • 1 comments

Exception has occurred: UnicodeDecodeError 'utf-8' codec can't decode byte 0xc1 in position 8: invalid start byte

I guess the reason is there's no encoding flag when it opens the data file.

open("xxx.data",encoding="utf-8")

such as this.

znsoftm avatar Jul 06 '21 23:07 znsoftm

代码的编码格式改成utf-8?

liuyunwww avatar Jul 12 '21 01:07 liuyunwww