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
5b9f0960
Commit
5b9f0960
authored
Mar 19, 2024
by
赵小蒙
Browse files
修复image_path的连接符
parent
f5b9cff4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/para/para_split.py
magic_pdf/para/para_split.py
+1
-1
No files found.
magic_pdf/para/para_split.py
View file @
5b9f0960
...
@@ -133,7 +133,7 @@ def __split_para_in_layoutbox(lines_group, layout_bboxes, lang="en", char_avg_le
...
@@ -133,7 +133,7 @@ def __split_para_in_layoutbox(lines_group, layout_bboxes, lang="en", char_avg_le
def
get_span_text
(
span
):
def
get_span_text
(
span
):
c
=
span
.
get
(
'content'
,
''
)
c
=
span
.
get
(
'content'
,
''
)
if
len
(
c
)
==
0
:
if
len
(
c
)
==
0
:
c
=
span
.
get
(
'image
-
path'
,
''
)
c
=
span
.
get
(
'image
_
path'
,
''
)
return
c
return
c
...
...
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