Update sast_process.py

This commit is contained in:
shaohua.zhang 2020-08-27 14:59:07 +08:00 committed by GitHub
parent f27c147fd6
commit 93df86ca9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ class SASTProcessTrain(object):
"""
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():
poly_str, txt = line.strip().split('\t')
poly = map(float, poly_str.split(','))