|
@@ -3491,9 +3491,9 @@ class ProductAttributesPredictor():
|
|
|
|
|
|
if product == "":
|
|
|
# print(deal_list[id4],deal_list[id5],tmp_head_list,deal_list)
|
|
|
- if deal_list[id4] != "" or deal_list[id5] != "":
|
|
|
+ if (id4 != "" and deal_list[id4] != "") or (id5 != "" and deal_list[id5] != ""):
|
|
|
for head,value in zip(tmp_head_list,deal_list):
|
|
|
- if value in product_entity_list:
|
|
|
+ if value and value in product_entity_list:
|
|
|
product = value
|
|
|
break
|
|
|
|