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
892f522a
Commit
892f522a
authored
Apr 07, 2024
by
赵小蒙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
26e19fd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ocr_mkcontent.py
magic_pdf/dict2md/ocr_mkcontent.py
+2
-2
No files found.
magic_pdf/dict2md/ocr_mkcontent.py
View file @
892f522a
...
@@ -208,14 +208,14 @@ def line_to_standard_format(line):
...
@@ -208,14 +208,14 @@ def line_to_standard_format(line):
def
ocr_mk_mm_standard_format
(
pdf_info_dict
:
dict
):
def
ocr_mk_mm_standard_format
(
pdf_info_dict
:
dict
):
'''
"""
content_list
content_list
type string image/text/table/equation(行间的单独拿出来,行内的和text合并)
type string image/text/table/equation(行间的单独拿出来,行内的和text合并)
latex string latex文本字段。
latex string latex文本字段。
text string 纯文本格式的文本数据。
text string 纯文本格式的文本数据。
md string markdown格式的文本数据。
md string markdown格式的文本数据。
img_path string s3://full/path/to/img.jpg
img_path string s3://full/path/to/img.jpg
'''
"""
content_list
=
[]
content_list
=
[]
for
_
,
page_info
in
pdf_info_dict
.
items
():
for
_
,
page_info
in
pdf_info_dict
.
items
():
blocks
=
page_info
.
get
(
"preproc_blocks"
)
blocks
=
page_info
.
get
(
"preproc_blocks"
)
...
...
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