|
@@ -318,11 +318,11 @@ def predict(doc_id,text,title="",page_time="",web_source_no='',web_source_name="
|
|
|
start_time = time.time()
|
|
|
sentence2_list, sentence2_list_attach = extract_sentence_list(list_sentences[0])
|
|
|
parse_document = ParseDocument(text, True,list_obj=sentence2_list)
|
|
|
- requirement_text, aptitude_text, addr_bidopen_text, addr_bidsend_text, out_lines, requirement_scope, pinmu_name, list_policy, winter_scope = extract_parameters(parse_document)
|
|
|
+ requirement_text, aptitude_text, addr_bidopen_text, addr_bidsend_text, out_lines, requirement_scope, pinmu_name, list_policy, winter_scope, correction_content = extract_parameters(parse_document)
|
|
|
|
|
|
if sentence2_list_attach!=[] and requirement_text == '' and aptitude_text == '' and addr_bidopen_text=="":
|
|
|
parse_document = ParseDocument(text, True, list_obj=sentence2_list_attach)
|
|
|
- requirement_text, aptitude_text, addr_bidopen_text, addr_bidsend_text, out_lines, requirement_scope, pinmu_name, list_policy, winter_scope = extract_parameters(parse_document)
|
|
|
+ requirement_text, aptitude_text, addr_bidopen_text, addr_bidsend_text, out_lines, requirement_scope, pinmu_name, list_policy, winter_scope, correction_content = extract_parameters(parse_document)
|
|
|
# print('out_lines',out_lines)
|
|
|
# if addr_bidopen_text == '':
|
|
|
# addr_bidopen_text = extract_addr(list_articles[0].content)
|
|
@@ -598,6 +598,8 @@ def predict(doc_id,text,title="",page_time="",web_source_no='',web_source_name="
|
|
|
data_res["proportion"] = pb_json.get('pb').get('proportion', '')
|
|
|
data_res["pb_project_name"] = pb_json.get('pb').get('project_name_refind', '')
|
|
|
|
|
|
+ # 更正内容
|
|
|
+ data_res['correction_content'] = correction_content[:1500]
|
|
|
# 资质要求
|
|
|
data_res['aptitude'] = aptitude_text[:1500]
|
|
|
# 采购内容
|