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
d0411ba9
"vscode:/vscode.git/clone" did not exist on "69d73030432443e51e6bee7a3d6c27d45ea03432"
Commit
d0411ba9
authored
Apr 15, 2024
by
quyuan
Browse files
CI yaml
parent
f03b039a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tools/ocr_badcase.py
tools/ocr_badcase.py
+2
-2
tools/text_badcase.py
tools/text_badcase.py
+2
-2
No files found.
tools/ocr_badcase.py
View file @
d0411ba9
...
...
@@ -769,13 +769,13 @@ def save_results(result_dict,overall_report_dict,badcase_path,overall_path,):
# 将结果字典转换为JSON格式并写入文件
json
.
dump
(
result_dict
,
f
,
ensure_ascii
=
False
,
indent
=
4
)
print
(
f
"评测badcase输出报告查看:
{
badcase_path
}
"
)
print
(
f
"
OCR抽取方案
评测badcase输出报告查看:
{
badcase_path
}
"
)
with
open
(
overall_path
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
# 将结果字典转换为JSON格式并写入文件
json
.
dump
(
overall_report_dict
,
f
,
ensure_ascii
=
False
,
indent
=
4
)
print
(
f
"整体评测指标结果请查看:
{
overall_path
}
"
)
print
(
f
"
OCR抽取方案
整体评测指标结果请查看:
{
overall_path
}
"
)
def
upload_to_s3
(
file_path
,
bucket_name
,
s3_directory
,
AWS_ACCESS_KEY
,
AWS_SECRET_KEY
,
END_POINT_URL
):
"""
...
...
tools/text_badcase.py
View file @
d0411ba9
...
...
@@ -781,13 +781,13 @@ def save_results(result_dict,overall_report_dict,badcase_path,overall_path,):
# 将结果字典转换为JSON格式并写入文件
json
.
dump
(
result_dict
,
f
,
ensure_ascii
=
False
,
indent
=
4
)
print
(
f
"评测badcase输出报告查看:
{
badcase_path
}
"
)
print
(
f
"
文本型PDF抽取方案
评测badcase输出报告查看:
{
badcase_path
}
"
)
with
open
(
overall_path
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
# 将结果字典转换为JSON格式并写入文件
json
.
dump
(
overall_report_dict
,
f
,
ensure_ascii
=
False
,
indent
=
4
)
print
(
f
"整体评测指标结果请查看:
{
overall_path
}
"
)
print
(
f
"
文本型PDF抽取方案
整体评测指标结果请查看:
{
overall_path
}
"
)
def
upload_to_s3
(
file_path
,
bucket_name
,
s3_directory
,
AWS_ACCESS_KEY
,
AWS_SECRET_KEY
,
END_POINT_URL
):
...
...
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