Переглянути джерело

修复无表格产品提取金额单位问题

lsm 1 рік тому
батько
коміт
f2e64538e4
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      BiddingKG/dl/interface/predictor.py

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

@@ -3305,7 +3305,7 @@ class ProductAttributesPredictor():
                                         re_price = re.findall("[零壹贰叁肆伍陆柒捌玖拾佰仟萬億圆十百千万亿元角分]{3,}|\d[\d,]*(?:\.\d+)?万?",_unitPrice)
                                         if re_price:
                                             _unitPrice = re_price[0]
-                                            if '万元' in header_list[2] and '万' not in _unitPrice:
+                                            if '万元' in header_list[3] and '万' not in _unitPrice:
                                                 _unitPrice += '万元'
                                             unitPrice = getUnifyMoney(_unitPrice)
                                             if unitPrice>=10000*10000: