未验证 提交 3feb6476 编写于 作者: X Xing Wu 提交者: GitHub

add .encode('utf-8') to fix predict outputs (#4423)

上级 427b7262
......@@ -80,7 +80,7 @@ def do_infer(args):
result = infer_process(infer_loader)
for sent, tags in result:
result_list = ['(%s, %s)' % (ch, tag) for ch, tag in zip(sent, tags)]
print(''.join(result_list))
print(''.join(result_list).encode('utf-8'))
if __name__ == '__main__':
args = parser.parse_args()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册