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
4e7511fb
Commit
4e7511fb
authored
Dec 11, 2024
by
icecraft
Browse files
fix: dup classify pdf type
parent
168a1115
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 @
4e7511fb
...
@@ -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