Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
feat(magicpdf): set default value for inside_model to True
myhloli1e3c1ef5ecce
diff --git a/magic_pdf/cli/magicpdf.py b/magic_pdf/cli/magicpdf.pyindex c95aacf3..80c0eda7 100644--- a/magic_pdf/cli/magicpdf.py+++ b/magic_pdf/cli/magicpdf.py@@ -179,7 +179,7 @@ def cli():help="指定解析方法。txt: 文本型 pdf 解析方法, ocr: 光学识别解析 pdf, auto: 程序智能选择解析方法",default="auto",)[email protected]("--inside_model", type=click.BOOL, default=False, help="使用内置模型测试")[email protected]("--inside_model", type=click.BOOL, default=True, help="使用内置模型测试")@click.option("--model_mode", type=click.STRING, default="full",help="内置模型选择。lite: 快速解析,精度较低,full: 高精度解析,速度较慢")def json_command(json, method, inside_model, model_mode):@@ -233,7 +233,7 @@ def json_command(json, method, inside_model, model_mode):help="指定解析方法。txt: 文本型 pdf 解析方法, ocr: 光学识别解析 pdf, auto: 程序智能选择解析方法",default="auto",)[email protected]("--inside_model", type=click.BOOL, default=False, help="使用内置模型测试")[email protected]("--inside_model", type=click.BOOL, default=True, help="使用内置模型测试")@click.option("--model_mode", type=click.STRING, default="full",help="内置模型选择。lite: 快速解析,精度较低,full: 高精度解析,速度较慢")def local_json_command(local_json, method, inside_model, model_mode):@@ -288,7 +288,7 @@ def local_json_command(local_json, method, inside_model, model_mode):help="指定解析方法。txt: 文本型 pdf 解析方法, ocr: 光学识别解析 pdf, auto: 程序智能选择解析方法",default="auto",)[email protected]("--inside_model", type=click.BOOL, default=False, help="使用内置模型测试")[email protected]("--inside_model", type=click.BOOL, default=True, help="使用内置模型测试")@click.option("--model_mode", type=click.STRING, default="full",help="内置模型选择。lite: 快速解析,精度较低,full: 高精度解析,速度较慢")def pdf_command(pdf, model, method, inside_model, model_mode):