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
cb1b02e7
Commit
cb1b02e7
authored
Mar 26, 2024
by
许瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: disable auto include table title
parent
f0c463ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pdf_parse_for_train.py
magic_pdf/pdf_parse_for_train.py
+1
-1
No files found.
magic_pdf/pdf_parse_for_train.py
View file @
cb1b02e7
...
@@ -220,7 +220,7 @@ def parse_pdf_for_train(
...
@@ -220,7 +220,7 @@ def parse_pdf_for_train(
# 解析表格并对table_bboxes进行位置的微调,防止表格周围的文字被截断
# 解析表格并对table_bboxes进行位置的微调,防止表格周围的文字被截断
table_bboxes
=
parse_tables
(
page_id
,
page
,
model_output_json
)
table_bboxes
=
parse_tables
(
page_id
,
page
,
model_output_json
)
table_bboxes
=
fix_tables
(
table_bboxes
=
fix_tables
(
page
,
table_bboxes
,
include_table_title
=
Tru
e
,
scan_line_num
=
2
page
,
table_bboxes
,
include_table_title
=
Fals
e
,
scan_line_num
=
2
)
# 修正
)
# 修正
table_bboxes
=
fix_table_text_block
(
table_bboxes
=
fix_table_text_block
(
text_raw_blocks
,
table_bboxes
text_raw_blocks
,
table_bboxes
...
...
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