提交 fb47984d 编写于 作者: M malin10

code style

上级 1aa218f3
......@@ -157,8 +157,7 @@ def filter_corpus(args):
# write word2id file
print("write word2id file to : " + args.dict_path + "_word_to_id_")
with io.open(
args.word_id_path, 'w+', encoding='utf-8') as fid:
with io.open(args.word_id_path, 'w+', encoding='utf-8') as fid:
for k, v in word_to_id_.items():
fid.write(k + " " + str(v) + '\n')
# filter corpus and convert id
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册