Update sast_process.py
parent
f27c147fd6
commit
93df86ca9a
|
@ -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(','))
|
||||||
|
|
Loading…
Reference in New Issue