ソースを参照

修复一个单元格<br/>换行多个产品提取

lsm 1 年間 前
コミット
f9da136ad4
1 ファイル変更1 行追加1 行削除
  1. 1 1
      BiddingKG/dl/interface/predictor.py

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

@@ -2914,7 +2914,7 @@ class ProductAttributesPredictor():
         :return:公告表格内 产品、数量、单价、品牌、规格 ,表头,表头列等信息
         '''
 
-        html = html.replace('<br>', '\n')
+        html = html.replace('<br>', '\n').replace('<br/>', '\n')
         soup = BeautifulSoup(html, 'lxml')
         # flag_yx = True if re.search('采购意向', html) else False
         flag_yx = True if re.search('采购意向|招标意向|选取意向|意向公告|意向公示|意向公开', html) else False