Browse Source

extract_count加分修改

luojiehua 10 tháng trước cách đây
mục cha
commit
d46f29ff00
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      BiddingKG/dl/interface/extract.py

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

@@ -152,10 +152,12 @@ def extractCount(extract_dict,page_attachments,web_source_name):
                         has_zhaobiao = True
                     if str(classification)=='采购清单':
                         has_qingdan = True
+
+                extract_count += 2
             if has_zhaobiao:
-                extract_count += 3
-            if has_qingdan:
                 extract_count += 2
+            if has_qingdan:
+                extract_count += 1
         except Exception as e:
             traceback.print_exc()
             pass