提交 8d9ce5f9 编写于 作者: Z zhangwenhui03

fix reader

上级 0faa6fb3
......@@ -49,11 +49,7 @@ class Word2VecReader(object):
word_id = 0
with io.open(dict_path, 'r', encoding='utf-8') as f:
ll = 0
for line in f:
ll += 1
if ll % 100000 == 1:
print(ll)
word, count = line.split()[0], int(line.split()[1])
word_id += 1
id_counts.append(count)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册