|
@@ -2285,7 +2285,7 @@ class ProductAttributesPredictor():
|
|
|
elif re.search('采购预算|预算金额', col0_l[i]):
|
|
|
header_list2.append(col0_l[i])
|
|
|
budget = col1_l[i]
|
|
|
- re_price = re.findall("[零壹贰叁肆伍陆柒捌玖拾佰仟萬億圆十百千万亿元角分]{3,}|\d[\d,]*(?:\.\d+)?", budget)
|
|
|
+ re_price = re.findall("[零壹贰叁肆伍陆柒捌玖拾佰仟萬億圆十百千万亿元角分]{3,}|\d[\d,]*(?:\.\d+)?万?", budget)
|
|
|
if re_price:
|
|
|
budget = re_price[0]
|
|
|
if '万元' in col0_l[i] and '万' not in budget:
|
|
@@ -2359,7 +2359,7 @@ class ProductAttributesPredictor():
|
|
|
if id3 != "":
|
|
|
if re.search('\d+|[零壹贰叁肆伍陆柒捌玖拾佰仟萬億十百千万亿元角分]{3,}', tds[id3]):
|
|
|
unitPrice = tds[id3]
|
|
|
- re_price = re.findall("[零壹贰叁肆伍陆柒捌玖拾佰仟萬億圆十百千万亿元角分]{3,}|\d[\d,]*(?:\.\d+)?",unitPrice)
|
|
|
+ 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:
|
|
@@ -2388,7 +2388,7 @@ class ProductAttributesPredictor():
|
|
|
if id7 != "":
|
|
|
if re.search('\d+|[零壹贰叁肆伍陆柒捌玖拾佰仟萬億十百千万亿元角分]{3,}', tds[id7]):
|
|
|
budget = tds[id7]
|
|
|
- re_price = re.findall("[零壹贰叁肆伍陆柒捌玖拾佰仟萬億圆十百千万亿元角分]{3,}|\d[\d,]*(?:\.\d+)?", budget)
|
|
|
+ re_price = re.findall("[零壹贰叁肆伍陆柒捌玖拾佰仟萬億圆十百千万亿元角分]{3,}|\d[\d,]*(?:\.\d+)?万?", budget)
|
|
|
if re_price:
|
|
|
budget = re_price[0]
|
|
|
if '万元' in header_list[2] and '万' not in budget:
|