未验证 提交 2dfba988 编写于 作者: M mapingshuo 提交者: GitHub

add utf-8 encoding for load data (for python3)

上级 adedfc5a
...@@ -69,7 +69,7 @@ def maybe_open(file_name): ...@@ -69,7 +69,7 @@ def maybe_open(file_name):
" |- wordvec.txt\n") " |- wordvec.txt\n")
raise RuntimeError(msg) raise RuntimeError(msg)
return open(file_name, 'r') return open(file_name, 'r', encoding="utf-8")
def tokenized_question_pairs(file_name): def tokenized_question_pairs(file_name):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册