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

Update quora_question_pairs.py

上级 2dfba988
......@@ -68,8 +68,10 @@ def maybe_open(file_name):
" |- readme.txt\n"
" |- wordvec.txt\n")
raise RuntimeError(msg)
return open(file_name, 'r', encoding="utf-8")
if sys.version_info <= (3, 0): # for python2
return open(file_name, 'r')
else:
return open(file_name, 'r', encoding="utf-8")
def tokenized_question_pairs(file_name):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册