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
3a0a08e4
"docs/vscode:/vscode.git/clone" did not exist on "7cc26429a171f2f3c01c488f7e1c29cfd5f653f4"
Unverified
Commit
3a0a08e4
authored
May 08, 2024
by
myhloli
Committed by
GitHub
May 08, 2024
Browse files
Merge pull request #100 from papayalove/master
解决list识别错误
parents
6a993c16
c2d48bed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
magic_pdf/para/para_split_v2.py
magic_pdf/para/para_split_v2.py
+2
-1
No files found.
magic_pdf/para/para_split_v2.py
View file @
3a0a08e4
...
@@ -114,7 +114,8 @@ def __detect_list_lines(lines, new_layout_bboxes, lang):
...
@@ -114,7 +114,8 @@ def __detect_list_lines(lines, new_layout_bboxes, lang):
else
:
else
:
layout_left
=
layout
[
0
]
layout_left
=
layout
[
0
]
if
l
[
'bbox'
][
0
]
==
layout_left
:
if
l
[
'bbox'
][
0
]
==
layout_left
:
if
first_char
.
isupper
()
or
first_char
.
isdigit
()
or
not
first_char
.
isalnum
():
# if first_char.isupper() or first_char.isdigit() or not first_char.isalnum():
if
not
first_char
.
isalnum
():
line_fea_encode
.
append
(
1
)
line_fea_encode
.
append
(
1
)
else
:
else
:
line_fea_encode
.
append
(
4
)
line_fea_encode
.
append
(
4
)
...
...
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