提交 84b90669 编写于 作者: L lujun

fix bug for machine_reading_comprehension in python3x, test=develop

上级 6367d61b
......@@ -23,6 +23,7 @@ import json
import logging
import numpy as np
from collections import Counter
import io
class BRCDataset(object):
......@@ -67,7 +68,7 @@ class BRCDataset(object):
Args:
data_path: the data file to load
"""
with open(data_path, 'r', encoding='utf-8') as fin:
with io.open(data_path, 'r', encoding='utf-8') as fin:
data_set = []
for lidx, line in enumerate(fin):
sample = json.loads(line.strip())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册