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
cb1b02e7
Commit
cb1b02e7
authored
Mar 26, 2024
by
许瑞
Browse files
feat: disable auto include table title
parent
f0c463ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/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