代码:
f = open('./搜狗新闻语料/val.txt')
修改为:
f = open('./搜狗新闻语料/val.txt','r', encoding='UTF-8')
编码问题详见:
https://segmentfault.com/a/1190000004625718
代码:
f = open('./搜狗新闻语料/val.txt')
修改为:
f = open('./搜狗新闻语料/val.txt','r', encoding='UTF-8')
编码问题详见:
https://segmentfault.com/a/1190000004625718