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
f68c6629
Commit
f68c6629
authored
Mar 01, 2024
by
xuchao
Browse files
update code
parent
59b0b0c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
magic_pdf/pdf_parse_by_model.py
magic_pdf/pdf_parse_by_model.py
+0
-1
No files found.
magic_pdf/pdf_parse_by_model.py
View file @
f68c6629
...
...
@@ -257,7 +257,6 @@ def parse_pdf_by_model(
footnote_bboxes_by_model
=
parse_footnotes_by_model
(
page_id
,
page
,
model_output_json
,
md_bookname_save_path
,
debug_mode
=
debug_mode
)
# 通过规则识别到的footnote
footnote_bboxes_by_rule
=
parse_footnotes_by_rule
(
remain_text_blocks
,
page_height
,
page_id
,
main_text_font
)
"""进入pdf过滤器,去掉一些不合理的pdf"""
is_good_pdf
,
err
=
pdf_filter
(
page
,
remain_text_blocks
,
table_bboxes
,
image_bboxes
)
if
not
is_good_pdf
:
...
...
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