Explorar o código

修复产品属性数量提取

lsm %!s(int64=2) %!d(string=hai) anos
pai
achega
90db819aa2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      BiddingKG/dl/interface/predictor.py

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

@@ -2750,7 +2750,7 @@ class ProductAttributesPredictor():
                         product = tds[id1]
                         if id2 != "":
                             if re.search('\d+|[壹贰叁肆伍陆柒捌玖拾一二三四五六七八九十]', tds[id2]):
-                                _quantity = tds[id2]
+                                quantity = tds[id2]
                                 # quantity = re.sub('[()(),,约]', '', quantity)
                                 # quantity = re.sub('[一壹]', '1', quantity)
                                 # ser = re.search('^(\d+\.?\d*)([㎡\w/]{,5})', quantity)