未验证 提交 93df86ca 编写于 作者: S shaohua.zhang 提交者: GitHub

Update sast_process.py

上级 f27c147f
...@@ -599,7 +599,7 @@ class SASTProcessTrain(object): ...@@ -599,7 +599,7 @@ class SASTProcessTrain(object):
""" """
text_polys, txt_tags, txts = [], [], [] text_polys, txt_tags, txts = [], [], []
with open(poly_txt_path) as f: with open(poly_txt_path, 'rb') as f:
for line in f.readlines(): for line in f.readlines():
poly_str, txt = line.strip().split('\t') poly_str, txt = line.strip().split('\t')
poly = map(float, poly_str.split(',')) poly = map(float, poly_str.split(','))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册