Unverified Commit 3a0a08e4 authored by myhloli's avatar myhloli Committed by GitHub

Merge pull request #100 from papayalove/master

解决list识别错误
parents 6a993c16 c2d48bed
...@@ -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