|
@@ -305,7 +305,7 @@ def predict(doc_id,text,title="",page_time="",web_source_no='',web_source_name="
|
|
# content = list_articles[0].content
|
|
# content = list_articles[0].content
|
|
# channel_dic = predictor.getPredictor("channel").predict_rule(title, content, channel_dic, prem_dic=prem[0]['prem'])
|
|
# channel_dic = predictor.getPredictor("channel").predict_rule(title, content, channel_dic, prem_dic=prem[0]['prem'])
|
|
channel_dic, msc = predictor.getPredictor("channel").predict_merge(title,list_sentences[0], text, list_articles[0].bidway, prem[0], original_docchannel)
|
|
channel_dic, msc = predictor.getPredictor("channel").predict_merge(title,list_sentences[0], text, list_articles[0].bidway, prem[0], original_docchannel)
|
|
- # print('msc', msc)
|
|
|
|
|
|
+ print('msc', msc)
|
|
cost_time["rule_channel"] = round(time.time()-start_time,2)
|
|
cost_time["rule_channel"] = round(time.time()-start_time,2)
|
|
|
|
|
|
start_time = time.time() # 产品名称及废标原因提取 #依赖 docchannel结果
|
|
start_time = time.time() # 产品名称及废标原因提取 #依赖 docchannel结果
|
|
@@ -340,7 +340,7 @@ def predict(doc_id,text,title="",page_time="",web_source_no='',web_source_name="
|
|
|
|
|
|
# data_res = Preprocessing.union_result(Preprocessing.union_result(codeName, prem),list_punish_dic)[0]
|
|
# data_res = Preprocessing.union_result(Preprocessing.union_result(codeName, prem),list_punish_dic)[0]
|
|
# data_res = Preprocessing.union_result(Preprocessing.union_result(Preprocessing.union_result(codeName, prem),list_punish_dic), list_channel_dic)[0]
|
|
# data_res = Preprocessing.union_result(Preprocessing.union_result(Preprocessing.union_result(codeName, prem),list_punish_dic), list_channel_dic)[0]
|
|
- version_date = {'version_date': '2023-10-30'}
|
|
|
|
|
|
+ version_date = {'version_date': '2023-11-07'}
|
|
data_res = dict(codeName[0], **prem[0], **channel_dic, **product_attrs[0], **product_attrs[1], **payment_way_dic, **fail_reason, **industry, **district, **candidate_dic, **version_date)
|
|
data_res = dict(codeName[0], **prem[0], **channel_dic, **product_attrs[0], **product_attrs[1], **payment_way_dic, **fail_reason, **industry, **district, **candidate_dic, **version_date)
|
|
|
|
|
|
'''最终检查修正招标、中标金额'''
|
|
'''最终检查修正招标、中标金额'''
|