浏览代码

修复一个单元格<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