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
fd2f3c58
Unverified
Commit
fd2f3c58
authored
Dec 11, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Dec 11, 2024
Browse files
Merge pull request #1258 from icecraft/fix/dup_classify
fix: dup classify pdf type
parents
168a1115
4e7511fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
magic_pdf/tools/common.py
magic_pdf/tools/common.py
+6
-3
No files found.
magic_pdf/tools/common.py
View file @
fd2f3c58
...
@@ -123,6 +123,9 @@ def do_parse(
...
@@ -123,6 +123,9 @@ def do_parse(
formula_enable
=
formula_enable
,
formula_enable
=
formula_enable
,
table_enable
=
table_enable
,
table_enable
=
table_enable
,
)
)
pipe_result
=
infer_result
.
pipe_txt_mode
(
image_writer
,
debug_mode
=
True
,
lang
=
lang
)
else
:
else
:
infer_result
=
ds
.
apply
(
infer_result
=
ds
.
apply
(
doc_analyze
,
doc_analyze
,
...
@@ -132,7 +135,7 @@ def do_parse(
...
@@ -132,7 +135,7 @@ def do_parse(
formula_enable
=
formula_enable
,
formula_enable
=
formula_enable
,
table_enable
=
table_enable
,
table_enable
=
table_enable
,
)
)
pipe_result
=
infer_result
.
pipe_
auto
_mode
(
pipe_result
=
infer_result
.
pipe_
ocr
_mode
(
image_writer
,
debug_mode
=
True
,
lang
=
lang
image_writer
,
debug_mode
=
True
,
lang
=
lang
)
)
...
...
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