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
4ff09a2f
Commit
4ff09a2f
authored
May 27, 2024
by
liukaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复边界问题(修复list拼接和reference分行问题)
parent
f8548a8e
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 @
4ff09a2f
...
@@ -106,7 +106,8 @@ def __detect_list_lines(lines, new_layout_bboxes, lang):
...
@@ -106,7 +106,8 @@ def __detect_list_lines(lines, new_layout_bboxes, lang):
3. 如果非顶格,首字符大写,编码为2
3. 如果非顶格,首字符大写,编码为2
4. 如果非顶格,首字符非大写编码为3
4. 如果非顶格,首字符非大写编码为3
"""
"""
x_map_tag_dict
,
min_x_tag
=
cluster_line_x
(
lines
)
if
len
(
lines
)
>
0
:
x_map_tag_dict
,
min_x_tag
=
cluster_line_x
(
lines
)
for
l
in
lines
:
for
l
in
lines
:
span_text
=
__get_span_text
(
l
[
'spans'
][
0
])
span_text
=
__get_span_text
(
l
[
'spans'
][
0
])
first_char
=
span_text
[
0
]
first_char
=
span_text
[
0
]
...
...
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