You need to sign in or sign up before continuing.
未验证 提交 aeee367c 编写于 作者: K Kennycao123 提交者: GitHub

Update data_aug.py

上级 c9a87f24
......@@ -288,9 +288,8 @@ if __name__ == "__main__":
if six.PY3:
with open(input_file_path, encoding='UTF-8') as input_file:
with open(input_file_path) as input_file:
with open(output_file_path, 'w') as output_file:
with open(input_file_path, 'r', encoding='UTF-8') as input_file:
with open(output_file_path, 'w', encoding='UTF-8') as output_file:
for i, l in enumerate(input_file.readlines()):
parser = choose_parser()
#print(parser.__name__ == "pos_replace_parser")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册