Commit c2d48bed authored by liukaiwen's avatar liukaiwen

解决list识别错误

parent 6a993c16
...@@ -114,7 +114,8 @@ def __detect_list_lines(lines, new_layout_bboxes, lang): ...@@ -114,7 +114,8 @@ def __detect_list_lines(lines, new_layout_bboxes, lang):
else: else:
layout_left = layout[0] layout_left = layout[0]
if l['bbox'][0] == layout_left: if l['bbox'][0] == layout_left:
if first_char.isupper() or first_char.isdigit() or not first_char.isalnum(): # if first_char.isupper() or first_char.isdigit() or not first_char.isalnum():
if not first_char.isalnum():
line_fea_encode.append(1) line_fea_encode.append(1)
else: else:
line_fea_encode.append(4) line_fea_encode.append(4)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment