提交 d4dbc11c 编写于 作者: K kinghuin 提交者: wuzewu

Update dataset.py (#295)

上级 6dc03dc3
......@@ -167,7 +167,7 @@ class BaseDataset(object):
def _load_label_data(self):
with open(os.path.join(self.base_path, self.label_file), "r") as file:
return file.read().split("\n")
return file.read().strip().split("\n")
def __str__(self):
return "Dataset: %s with %i train examples, %i dev examples and %i test examples" % (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册