소스 검색

暂时注释掉拟在建提取

fangjiasheng 1 년 전
부모
커밋
daeeef8317
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      BiddingKG/dl/interface/extract.py

+ 4 - 4
BiddingKG/dl/interface/extract.py

@@ -353,14 +353,14 @@ def predict(doc_id,text,title="",page_time="",web_source_no='',web_source_name="
     getAttributes.confirm_prem(prem[0]['prem'], channel_dic)
 
     # 提取拟在建所需字段
-    start_time = time.time()
-    pb_json = predictor.getPredictor('pb_extract').predict(prem, list_articles, list_sentences, list_entitys, title, codeName[0], text)
-    cost_time["pb_extract"] = round(time.time() - start_time, 2)
+    # start_time = time.time()
+    # pb_json = predictor.getPredictor('pb_extract').predict(prem, list_articles, list_sentences, list_entitys, title, codeName[0], text)
+    # cost_time["pb_extract"] = round(time.time() - start_time, 2)
 
     # 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]
     version_date = {'version_date': '2024-04-30'}
-    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, **all_moneys, **pb_json)
+    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, **all_moneys)
 
     '''最终检查修正招标、中标金额'''
     getAttributes.limit_maximum_amount(data_res, list_entitys[0])