Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
1e3c1ef5
Commit
1e3c1ef5
authored
Jul 17, 2024
by
myhloli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(magicpdf): set default value for inside_model to True
parent
6b76f5cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
magicpdf.py
magic_pdf/cli/magicpdf.py
+3
-3
No files found.
magic_pdf/cli/magicpdf.py
View file @
1e3c1ef5
...
...
@@ -179,7 +179,7 @@ def cli():
help
=
"指定解析方法。txt: 文本型 pdf 解析方法, ocr: 光学识别解析 pdf, auto: 程序智能选择解析方法"
,
default
=
"auto"
,
)
@
click
.
option
(
"--inside_model"
,
type
=
click
.
BOOL
,
default
=
Fals
e
,
help
=
"使用内置模型测试"
)
@
click
.
option
(
"--inside_model"
,
type
=
click
.
BOOL
,
default
=
Tru
e
,
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"
,
)
@
click
.
option
(
"--inside_model"
,
type
=
click
.
BOOL
,
default
=
Fals
e
,
help
=
"使用内置模型测试"
)
@
click
.
option
(
"--inside_model"
,
type
=
click
.
BOOL
,
default
=
Tru
e
,
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"
,
)
@
click
.
option
(
"--inside_model"
,
type
=
click
.
BOOL
,
default
=
Fals
e
,
help
=
"使用内置模型测试"
)
@
click
.
option
(
"--inside_model"
,
type
=
click
.
BOOL
,
default
=
Tru
e
,
help
=
"使用内置模型测试"
)
@
click
.
option
(
"--model_mode"
,
type
=
click
.
STRING
,
default
=
"full"
,
help
=
"内置模型选择。lite: 快速解析,精度较低,full: 高精度解析,速度较慢"
)
def
pdf_command
(
pdf
,
model
,
method
,
inside_model
,
model_mode
):
...
...
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