提交 6367d61b 编写于 作者: L lujun

fix bug for machine_reading_comprehension in python3x, test=develop

上级 1fc64142
......@@ -67,7 +67,7 @@ class BRCDataset(object):
Args:
data_path: the data file to load
"""
with open(data_path) as fin:
with open(data_path, 'r', encoding='utf-8') as fin:
data_set = []
for lidx, line in enumerate(fin):
sample = json.loads(line.strip())
......
......@@ -22,6 +22,7 @@ import os
import random
import json
import six
import multiprocessing
import paddle
import paddle.fluid as fluid
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册