Selaa lähdekoodia

调整大纲提取补充中标人

lsm 3 päivää sitten
vanhempi
commit
5a4c177d36
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5 5
      BiddingKG/dl/interface/predictor.py

+ 5 - 5
BiddingKG/dl/interface/predictor.py

@@ -2464,7 +2464,7 @@ class RoleGrade():
         '''
         bid_info = []
         if outlines:
-            win_pattern = re.compile("^([((][一二三四五六七八九十\d]+[))]|[一二三四五六七八九十]+\s*[..、])[\w(]{,5}((中标|成交)[))]?(人|单位)?的?(基本|主要)?(信息|情况|概况|结果)|(中标|成交)[))]?(人|供应商|单位)|中标公示单位:)")
+            win_pattern = re.compile("^([((][一二三四五六七八九十\d]+[))]|[一二三四五六七八九十]+\s*[..、])[预拟]?((中标|中选|成交)((成交))?(人|单位|供应商)?的?(基本|主要)?(信息|情况|概况|结果)(如下)?|[预拟]?(中标|中选|成交)((成交))?(人|供应商|单位)(名称)?(、地址)?([及和]\w{,2}(价格|报价|金额))?(如下)?|中标公示单位:)[,:]?$")
             for outline in outlines:
                 text_, title_type, title_index, next_index, scope = outline
                 if re.search(win_pattern, text_) and re.search('(未|没|是否)(中标|成交)|中标单位合同签订主体|业绩|提供', text_)==None:
@@ -2621,10 +2621,10 @@ class RoleGrade():
                     entity.label = 2
                     entity.values[entity.label] = 0.55
                     log('大纲规则补充中标人:%s, docid:%s'%(entity.entity_text, docid))
-                elif len(bid_info_company) == 1 and entity.label != 2:
-                    entity.label = 2
-                    entity.values[entity.label] = 0.55
-                    log('大纲规则补充中标人:%s, docid:%s' % (entity.entity_text, docid))
+                # elif len(bid_info_company) == 1 and entity.label != 2:
+                #     entity.label = 2
+                #     entity.values[entity.label] = 0.55
+                #     log('大纲规则补充中标人:%s, docid:%s' % (entity.entity_text, docid))
 
 class MoneyGrade():
     def __init__(self):