Unverified Commit fd2f3c58 authored by Xiaomeng Zhao's avatar Xiaomeng Zhao Committed by GitHub
Browse files

Merge pull request #1258 from icecraft/fix/dup_classify

fix: dup classify pdf type
parents 168a1115 4e7511fb
......@@ -123,6 +123,9 @@ def do_parse(
formula_enable=formula_enable,
table_enable=table_enable,
)
pipe_result = infer_result.pipe_txt_mode(
image_writer, debug_mode=True, lang=lang
)
else:
infer_result = ds.apply(
doc_analyze,
......@@ -132,9 +135,9 @@ def do_parse(
formula_enable=formula_enable,
table_enable=table_enable,
)
pipe_result = infer_result.pipe_auto_mode(
image_writer, debug_mode=True, lang=lang
)
pipe_result = infer_result.pipe_ocr_mode(
image_writer, debug_mode=True, lang=lang
)
elif parse_method == 'txt':
infer_result = ds.apply(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment