Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
3a0a08e4
Unverified
Commit
3a0a08e4
authored
May 08, 2024
by
myhloli
Committed by
GitHub
May 08, 2024
Browse files
Options
Browse Files
Download
Plain Diff
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
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