10.18小解析

This commit is contained in:
zy123 2024-10-19 17:32:03 +08:00
parent 0f85e9e5e4
commit 9e42dba6bc
2 changed files with 3 additions and 2 deletions

View File

@ -43,7 +43,7 @@ def preprocess_files(output_folder, downloaded_file_path, file_type, unique_id):
return None
# # 异步上传知识库
# future_knowledge = executor.submit(addfileToKnowledge, docx_path, "招标解析" + unique_id)
future_knowledge = executor.submit(addfileToKnowledge, docx_path, "招标解析" + unique_id)
# 调用截取PDF多次
truncate_files = truncate_pdf_multiple(pdf_path, output_folder)
@ -67,7 +67,7 @@ def preprocess_files(output_folder, downloaded_file_path, file_type, unique_id):
'truncate0': truncate0,
'truncate1': truncate1,
'truncate3': truncate3,
# 'knowledge_future': future_knowledge, # 返回 Future 对象
'knowledge_future': future_knowledge, # 返回 Future 对象
'truncate0_jsonpath': truncate_jsonpath,
'merged_baseinfo_path':merged_baseinfo_path,
'clause_path': clause_path,

View File

@ -153,6 +153,7 @@ def process_qualification(qualification_review, truncate3, invalid_path,merged_b
elif matching_keys_list and truncate3 == "": # 这种情况是评分办法前附表中有要求,但是没有正确截取到'资格审查表'
print("资格评审: type4")
[]
final_qualification = get_all_dict(invalid_path)
final_qualify_json = add_keys_to_json(final_qualification, non_matching_dict)
return final_qualify_json or {"资格评审": ""}