提交 05538497 编写于 作者: M malin10

modify w2v_evaluate_reader.py

上级 caa28a2d
......@@ -75,6 +75,8 @@ class TrainReader(Reader):
def generate_sample(self, line):
def reader():
if ':' in line:
pass
features = self.strip_lines(line.lower(), self.word_to_id)
features = features.split()
yield [('analogy_a', [self.word_to_id[features[0]]]),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册