mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-03-27 11:08:32 +07:00
refactor: remove unused line_content variable from list block processing
This commit is contained in:
@@ -667,7 +667,6 @@ def fix_list_blocks(list_blocks, text_blocks, ref_text_blocks):
|
||||
for list_block in list_blocks:
|
||||
# 统计list_block["blocks"]中所有block的type,用众数作为list_block的sub_type
|
||||
type_count = {}
|
||||
line_content = []
|
||||
for sub_block in list_block["blocks"]:
|
||||
sub_block_type = sub_block["type"]
|
||||
if sub_block_type not in type_count:
|
||||
|
||||
@@ -592,7 +592,6 @@ def fix_list_blocks(list_blocks, text_blocks, ref_text_blocks):
|
||||
for list_block in list_blocks:
|
||||
# 统计list_block["blocks"]中所有block的type,用众数作为list_block的sub_type
|
||||
type_count = {}
|
||||
line_content = []
|
||||
for sub_block in list_block["blocks"]:
|
||||
sub_block_type = sub_block["type"]
|
||||
if sub_block_type not in type_count:
|
||||
|
||||
Reference in New Issue
Block a user