Python3中遇到UnicodeEncodeError: 'ascii' codec can't encode characters in ordinal not in range(128)
Gaoshuang77 opened this issue · comments
Kristy-0205 commented
在运行到crf模型时出现上述错误,查了很久,试了各种方法也没有解决,请问有没有人知道该如何解决呢?
环境:win10 python3.8
编码方式查过了是utf-8没错,但一直出现这个错误。求大神支招!
TENGSP commented
同样问题,请问你解决了吗?
lynlynnlynnn commented
同问,请问解决了吗?
TENGSP commented
在运行到crf模型时出现上述错误,查了很久,试了各种方法也没有解决,请问有没有人知道该如何解决呢?
环境:win10 python3.8
编码方式查过了是utf-8没错,但一直出现这个错误。求大神支招!
求解决方法
lln1997 commented
只能用linux运行
BlackSpritee commented
找到报错的地方,变量名加str()转换一下,
hujunyi96 commented
在字符串前加小写r
bitong Yang commented
同问,请问解决了吗
Hai-Chao-ren commented
同问,在linux上运行crf时出现了这个问题
jiayuanyuan67777 commented
我也遇到这个问题,求问怎么解决