Commit 3184fa9f authored by 赵威's avatar 赵威

update function name

parent 63796e00
......@@ -15,7 +15,7 @@ class W2vSentences:
def __iter__(self):
with open(self.f_name, mode="r", encoding="utf-8", errors="ignore") as f:
for line in f.lines():
for line in f.readlines():
yield line.split()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment