"...python/git@developer.sourcefind.cn:change/sglang.git" did not exist on "243e745d0758a7214d29fe644d88f5c3b5c3d9ff"
Unverified Commit e56eec0d authored by Xiaomeng Zhao's avatar Xiaomeng Zhao Committed by GitHub
Browse files

Update mineru/utils/span_block_fix.py


Co-authored-by: default avatarCopilot <175728472+Copilot@users.noreply.github.com>
parent 0508df99
...@@ -84,7 +84,7 @@ def fix_text_block(block): ...@@ -84,7 +84,7 @@ def fix_text_block(block):
else: else:
vertical_ratio = vertical_span_count / total_span_count vertical_ratio = vertical_span_count / total_span_count
if vertical_ratio > 0.8: if vertical_ratio > VERTICAL_TEXT_BLOCK_THRESHOLD:
# 如果是纵向文本块,则按纵向lines处理 # 如果是纵向文本块,则按纵向lines处理
block_lines = merge_spans_to_vertical_line(block['spans']) block_lines = merge_spans_to_vertical_line(block['spans'])
sort_block_lines = vertical_line_sort_spans_from_top_to_bottom(block_lines) sort_block_lines = vertical_line_sort_spans_from_top_to_bottom(block_lines)
......
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