V10.541 收斂高信心 exact 覆核池

This commit is contained in:
OoO
2026-06-01 09:49:56 +08:00
parent c0a7a55b72
commit 7e057435c5
8 changed files with 185 additions and 3 deletions

View File

@@ -1388,6 +1388,70 @@ class CompetitorPriceFeeder:
AND COALESCE(p.name, '') ~* 'isl[a-z0-9]*[0-9]{2,3}'
AND COALESCE(la.best_competitor_product_name, '') ~* 'isl[a-z0-9]*[0-9]{2,3}'
)
OR (
lower(COALESCE(p.name, '')) LIKE '%ordinary%'
AND lower(COALESCE(la.best_competitor_product_name, '')) LIKE '%ordinary%'
AND COALESCE(p.name, '') LIKE '%咖啡因%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%咖啡因%'
AND lower(COALESCE(p.name, '')) LIKE '%egcg%'
AND lower(COALESCE(la.best_competitor_product_name, '')) LIKE '%egcg%'
AND COALESCE(p.name, '') LIKE '%兒茶眼部配方%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%兒茶眼部配方%'
)
OR (
lower(COALESCE(p.name, '')) LIKE '%natures%'
AND lower(COALESCE(p.name, '')) LIKE '%care%'
AND lower(COALESCE(la.best_competitor_product_name, '')) LIKE '%natures%'
AND lower(COALESCE(la.best_competitor_product_name, '')) LIKE '%care%'
AND COALESCE(p.name, '') LIKE '%綿羊油%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%綿羊油%'
)
OR (
lower(COALESCE(p.name, '')) LIKE '%tomoon%'
AND lower(COALESCE(la.best_competitor_product_name, '')) LIKE '%tomoon%'
AND COALESCE(p.name, '') LIKE '%德國奔月%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%德國奔月%'
AND COALESCE(p.name, '') LIKE '%豪華套裝組%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%豪華套裝組%'
AND COALESCE(p.name, '') LIKE '%指甲%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%指甲%'
)
OR (
lower(COALESCE(p.name, '')) LIKE '%hh%'
AND lower(COALESCE(la.best_competitor_product_name, '')) LIKE '%hh%'
AND COALESCE(p.name, '') LIKE '%私密植萃抗菌潔淨露%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%私密植萃抗菌潔淨露%'
AND COALESCE(p.name, '') LIKE '%私密衣物抗菌手洗精%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%私密衣物抗菌手洗精%'
)
OR (
(
lower(COALESCE(p.name, '')) LIKE '%sebamed%'
OR COALESCE(p.name, '') LIKE '%施巴%'
)
AND (
lower(COALESCE(la.best_competitor_product_name, '')) LIKE '%sebamed%'
OR COALESCE(la.best_competitor_product_name, '') LIKE '%施巴%'
)
AND COALESCE(p.name, '') LIKE '%護潔露%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%護潔露%'
AND COALESCE(p.name, '') LIKE '%200%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%200%'
)
OR (
(
lower(COALESCE(p.name, '')) LIKE '%yes%'
OR COALESCE(p.name, '') LIKE '%德悅氏%'
)
AND (
lower(COALESCE(la.best_competitor_product_name, '')) LIKE '%yes%'
OR COALESCE(la.best_competitor_product_name, '') LIKE '%德悅氏%'
)
AND COALESCE(p.name, '') LIKE '%鋒利窄弧型剪刀%'
AND COALESCE(la.best_competitor_product_name, '') LIKE '%鋒利窄弧型剪刀%'
AND lower(COALESCE(p.name, '')) LIKE '%9cm%'
AND lower(COALESCE(la.best_competitor_product_name, '')) LIKE '%9cm%'
)
)
)
)

View File

@@ -494,14 +494,19 @@ FOCUSED_IDENTITY_VARIANT_REVIEW_BYPASS_REASONS = {
"dhc_olive_lip_1_5g",
"flortte_fruit_salad_eyeliner_0_5ml_catalog",
"frudia_honey_blueberry_lip_10g",
"hh_private_cleanser_laundry_wash_set",
"kanebo_allie_bright_uv_milk_60g_catalog",
"laroche_posay_lip_balm_4_7ml",
"laroche_posay_repair_lip_balm_7_5ml",
"lush_sakura_body_spray",
"neutrogena_hand_cream_56g_scent_catalog",
"natures_care_sheep_oil_exact_pack",
"opi_gel_polish_exact_model",
"sebamed_baby_lip_4_8g_2pack",
"sebamed_ph38_private_wash_200ml_2pack",
"so_natural_fixx_setting_spray_120ml_plain",
"tomoon_nail_clipper_luxury_size",
"yes_curved_scissors_9cm",
"cetaphil_long_lotion_237ml",
"cetaphil_long_lotion_473ml",
"clarins_double_serum_eye_20ml",
@@ -537,11 +542,16 @@ FOCUSED_IDENTITY_TOTAL_PRICE_REASONS = {
"taisu_baby_bath_shampoo_3pc",
"arden_eight_hour_lip_spf15_3_7g_3pack",
"flortte_fruit_salad_eyeliner_0_5ml_catalog",
"hh_private_cleanser_laundry_wash_set",
"kanebo_allie_bright_uv_milk_60g_catalog",
"laroche_posay_repair_lip_balm_7_5ml",
"neutrogena_hand_cream_56g_scent_catalog",
"natures_care_sheep_oil_exact_pack",
"opi_gel_polish_exact_model",
"sebamed_ph38_private_wash_200ml_2pack",
"kussen_baby_butt_cream_50ml_3pack",
"tomoon_nail_clipper_luxury_size",
"yes_curved_scissors_9cm",
"bone_diffuser_gift_3pack",
"selection1990_half_dome_wax_lamp_white",
"selection1990_bendable_wax_lamp_white",
@@ -4677,9 +4687,61 @@ def _has_focused_low_score_exact_identity_line(left: ProductIdentity, right: Pro
and "egcg" in right_raw
and "兒茶眼部配方" in left_text
and "兒茶眼部配方" in right_text
and _has_shared_volume(left, right, 30)
and (
_has_shared_volume(left, right, 30)
or (30.0 in left.volumes_ml and not right.volumes_ml)
or (30.0 in right.volumes_ml and not left.volumes_ml)
)
):
return "the_ordinary_caffeine_egcg_30ml"
if (
{"natures", "care"} <= (left.brand_tokens & right.brand_tokens)
and "綿羊油" in left_text
and "綿羊油" in right_text
and _has_exact_count_alignment(left, right)
and (
_has_shared_volume(left, right, 125)
or (125.0 in left.volumes_ml and not right.volumes_ml and "125m" in right_text)
or (125.0 in right.volumes_ml and not left.volumes_ml and "125m" in left_text)
)
):
return "natures_care_sheep_oil_exact_pack"
if (
"tomoon" in (left.brand_tokens & right.brand_tokens)
and "德國奔月" in left_text
and "德國奔月" in right_text
and "豪華套裝組" in left_text
and "豪華套裝組" in right_text
and ("指甲剪" in left_text or "指甲刀" in left_text)
and ("指甲剪" in right_text or "指甲刀" in right_text)
and any(size in left_text and size in right_text for size in ("l號", "s號"))
):
return "tomoon_nail_clipper_luxury_size"
if (
{"hh", "草本新淨界"} & (left.brand_tokens & right.brand_tokens)
and "私密植萃抗菌潔淨露" in left_text
and "私密植萃抗菌潔淨露" in right_text
and "私密衣物抗菌手洗精" in left_text
and "私密衣物抗菌手洗精" in right_text
and _has_shared_volume(left, right, 200)
):
return "hh_private_cleanser_laundry_wash_set"
if (
{"sebamed", "施巴"} & (left.brand_tokens & right.brand_tokens)
and "護潔露" in left_text
and "護潔露" in right_text
and _has_shared_volume(left, right, 200)
and _has_exact_count_alignment(left, right)
):
return "sebamed_ph38_private_wash_200ml_2pack"
if (
{"yes", "德悅氏"} & (left.brand_tokens & right.brand_tokens)
and "鋒利窄弧型剪刀" in left_text
and "鋒利窄弧型剪刀" in right_text
and "9cm" in left_text
and "9cm" in right_text
):
return "yes_curved_scissors_9cm"
if (
{"kussen", "葵森"} & (left.brand_tokens & right.brand_tokens)
and "寶寶益菌屁屁膏" in left_text