Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
e56eec0d
Unverified
Commit
e56eec0d
authored
Jul 04, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Jul 04, 2025
Browse files
Update mineru/utils/span_block_fix.py
Co-authored-by:
Copilot
<
175728472+Copilot@users.noreply.github.com
>
parent
0508df99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mineru/utils/span_block_fix.py
mineru/utils/span_block_fix.py
+1
-1
No files found.
mineru/utils/span_block_fix.py
View file @
e56eec0d
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment