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
0678a860
"vscode:/vscode.git/clone" did not exist on "a1d6b314db775470d0fd8bbd63761f600d0c6c69"
Unverified
Commit
0678a860
authored
Jun 11, 2024
by
myhloli
Committed by
GitHub
Jun 11, 2024
Browse files
Merge pull request #117 from papayalove/master
修复分段边界问题
parents
bf18172d
9c6cb7b7
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 @
0678a860
...
@@ -331,7 +331,7 @@ def __split_para_in_layoutbox(blocks_group, new_layout_bbox, lang="en"):
...
@@ -331,7 +331,7 @@ def __split_para_in_layoutbox(blocks_group, new_layout_bbox, lang="en"):
block
[
"type"
]
==
BlockType
.
Text
for
line
in
block
[
"type"
]
==
BlockType
.
Text
for
line
in
block
[
'lines'
]]
block
[
'lines'
]]
total_lines
=
len
(
lines
)
total_lines
=
len
(
lines
)
if
total_lines
==
1
:
if
total_lines
==
1
or
total_lines
==
0
:
list_info
.
append
([
False
,
False
])
list_info
.
append
([
False
,
False
])
continue
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