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
9c6cb7b7
Commit
9c6cb7b7
authored
Jun 11, 2024
by
liukaiwen
Browse files
修复分段边界问题
parent
bf18172d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/para/para_split_v2.py
magic_pdf/para/para_split_v2.py
+1
-1
No files found.
magic_pdf/para/para_split_v2.py
View file @
9c6cb7b7
...
...
@@ -331,7 +331,7 @@ def __split_para_in_layoutbox(blocks_group, new_layout_bbox, lang="en"):
block
[
"type"
]
==
BlockType
.
Text
for
line
in
block
[
'lines'
]]
total_lines
=
len
(
lines
)
if
total_lines
==
1
:
if
total_lines
==
1
or
total_lines
==
0
:
list_info
.
append
([
False
,
False
])
continue
"""在进入到真正的分段之前,要对文字块从统计维度进行对齐方式的探测,
...
...
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