P paper2skillsPlaybook
开始业务诊断
访客模式
07-NLP-VOC

'Skill: VOC Proxy NPS × AIPL 统一标签萃取引擎'

Skill-VOC-Proxy-NPS-AIPL-统一萃取引擎

声明类型推断验证状态待复核

用户研究员面临VOC指标口径不一——统一萃取将NPS偏差从15分压到4分,年化省12万元

来源
paper2skills-vault/07-NLP-VOC/Skill-VOC-Proxy-NPS-AIPL-统一萃取引擎.md
适用边界
论文方法到业务问题的项目侧映射,不自动证明客户根因。
声明类型示例验证状态待企业数据验证

597万

来源
paper2skills-vault/07-NLP-VOC/Skill-VOC-Proxy-NPS-AIPL-统一萃取引擎.md#business-value
适用边界
方法估算或场景示例,不等于客户结果或收益承诺。

待企业数据验证 · 缺失:样本、基线、时间窗、币种、计算方法、证据来源

业务视角
适用角色产品运营负责人 / 选品负责人 · 客服负责人 · 品牌负责人
适用平台Amazon Reviews / Q&A · TikTok 评论区 · Reddit 母婴社区
什么情况下用每月几千条差评和 Q&A 没有人力一条条看,但痛点都在里面;新品开发不知道做什么功能、改什么问题
示例目标(需企业数据验证)自动提取 Top 10 高频痛点,新品开发有用户数据背书,每月出竞品用户洞察报告
业务痛点
差评太多看不过来不知道用户真正在意什么竞品评论没有系统分析过新品开发靠拍脑袋

1. 解决的问题

用户研究员面临VOC指标口径不一——统一萃取将NPS偏差从15分压到4分,年化省12万元

2. 核心算法逻辑

核心思想

一条VOC文本通过品线感知的多维标签匹配+动态情感校准,同时萃取AIPL旅程、产品问题、消费者画像三大维度,最终输出Proxy NPS决策信号。

核心公式

\text{Proxy NPS} = \frac{(\text{Promoter Count} - \text{Detractor Count})}{\text{Total Count}} \times 100

其中:

  • Promoter = (推荐意愿标签 ∧ 正向情感) ∨ (无问题标签 ∧ 评分≥4)
  • Detractor = (产品问题标签 ∧ 负向情感) ∨ (服务问题标签 ∧ 负向情感)
  • Passive = 其他情况

业务含义:相比传统NPS仅依赖单一评分,Proxy NPS通过多标签组合判定用户真实倾向。在母婴出海场景中能识别"5星评价但产品有缺陷"的隐性风险用户,成本更低、信号更真实。

关键假设

  1. 多标签并存假设:一条评论可同时涉及多个产品维度(如"吸力强但噪音大"),需全部保留而非单一分类
  2. 品线独立性假设:吸奶器用户的"舒适度"关键词与内衣用户的"舒适度"语义不同,需品线隔离匹配
  3. 情感上下文动态性:预定义标签的情感极性需通过ABSA在具体语境中校准,而非全局固定
  4. 画像共现可推导:消费者类型(如"社群黏着型")可从原子标签共现模式统计推导,无需硬编码规则

三大断层(本 Skill 要解决的问题)

传统 VOC 标签体系存在三处断裂,单点优化任何一处都无法从一条评论同时得到可用的决策信号:

  1. 标签碎片化:产品问题标签、AIPL 旅程标签、画像标签分散在不同系统,无法从一条 VOC 文本同时萃取
  2. 品线交叉污染:通用标签和品线专属标签混用,导致吸奶器标签误打到内衣评论上
  3. 情感方向混乱:同一文本中不同方面的情感方向可能相反("吸力好但噪音大"),粗粒度情感极性无法支撑业务决策

统一萃取框架(六路串行)

单条 VOC 文本输入
    │
    ├──→ 品线过滤:只加载该 VOC 所属品线的标签种子
    │
    ├──→ 376 标签种子匹配:关键词 + 消费者习惯表达(多标签并存)
    │      └── 否定词检测:"not recommend" ≠ recommend 意愿
    │
    ├──→ 55 原子画像标签匹配:WHO/WHY/WHAT/WHEN/HOW/EMOTION
    │      └── 共现模式推导 → 社群黏着型/系统规划型/品质探索型
    │
    ├──→ 情感校准:标签预定义情感 + ABSA 动态计算
    │      ├── preset=负, ABSA=负 → calibrated(取 ABSA 强度)
    │      ├── preset=负, ABSA=正 → conflict(需人工复核)
    │      └── preset=正, ABSA=正 → calibrated(取 ABSA 强度)
    │
    ├──→ 品牌检测:Momcozy + 竞品提及(Spectra/Medela/Willow/Elvie)
    │
    └──→ Proxy NPS 计算:多标签场景下的 Promoter/Detractor/Passive 判定
           ├── [推荐意愿] + 正向 → Promoter
           ├── [产品问题] + 负向 → Detractor
           └── 无标签 + 5星 → Promoter(默认)

关键设计决策

决策选择原因
多标签策略全部保留用户可能同时提及多个问题方面
品线过滤统一跑一次全量(带过滤)避免先通用后个性的两次遍历开销
情感校准预定义 + ABSA 动态预定义保证一致性,ABSA 捕捉上下文
画像推导共现计分(非硬编码)数据驱动的画像归属,避免规则僵化
Proxy NPS标签优先级法推荐意愿标签优先级最高

输出契约的扩展维度(已知未实现,勿当现状读)

本卡 ③ 代码模板的 VOCLabelExtraction 目前只覆盖 9 个字段 (review_id / source_platform / product_line / rating / review_text / aipl_stage / problem_tags / sentiment_score / proxy_nps_category / consumer_portrait)。 历史规格版本还定义了以下六维扩展字段,尚未落入 ③ 的可运行代码,列在此处作为目标契约而非既有能力:

  • 画像:persona_atomic[](命中的原子标签)、persona_derived(推导的业务画像)
  • 情感:sentiment_calibration(calibrated | conflict)、aspect_sentiments(分方面情感明细)
  • 品牌:brand_mentions[]、brand_comparison
  • 质量:quality_score、is_suspicious
  • 业务闭环:metric_direction、story_line、strategy_pack、owner_dept、priority

由此产生两个必须在实现时补上的判定,当前 ③ 代码里没有对应逻辑:

  1. conflict 人工复核分支:当标签预定义情感极性(preset)与 ABSA 在该语境算出的极性方向相反时,

不得静默取其中一个值,必须标 calibration: "conflict" 并路由到人工复核队列。

  1. 否定词检测:对 L3 推荐类标签需检查关键词前是否存在否定词,"not recommend" 不得计为推荐意愿命中;

否则 Detractor 会被误判成 Promoter,正是本卡「假阳性成本远高于假阴性」所针对的错误方向。

非共识迁移:从NLP到跨境电商决策

原始领域(NLP):ABSA任务通常关注情感分类准确率最大化。

降维打击(母婴出海):

  • 在跨境电商中,假阳性成本远高于假阴性(误判一个Detractor为Promoter导致库存积压 > 漏掉一个Promoter)
  • 因此引入标签优先级法:推荐意愿标签 > 产品问题标签 > 其他标签,确保高风险信号优先浮出
  • 同时结合品线过滤,避免"吸奶器的防漏"标签污染"内衣的防漏"评论——这在通用NLP中无此需求,是跨境电商特有的降维

3. 业务应用场景

> 以下条数来自该 Skill 的历史规格版本(副本口径),未经企业数据核验,只用于说明输入面与处理量级,不作为商业结果证据。

四条来源的可用信号密度差别很大:退货留言与客服工单量大、意图明确,适合规则标注; 商品评论量最小但承载 AIPL 与画像维度,必须走 ABSA;Trustpilot 只做轻量分类与 NPS 校准。 因此本 Skill 的设计前提之一是一次全量统一跑(带品线过滤),而不是按来源分别建模。

业务问题: Momcozy暖奶器在Amazon上评分4.2星,但客诉率持续上升。传统方法仅按评分分类,导致3-4星评价(占比35%)的真实问题被忽视。其中"温度不均匀"问题在评论中高频出现,但因评分较高而未被重视,导致库存积压和退货率高企。

4. 输入数据要求

未提取到输入条目;请核对原始 Skill 卡片与代码。

5. 输出结果

未提取到输出条目;请核对原始 Skill 卡片与代码。

6. 业务价值与 ROI

597万

7. 代码模板

代码块数量:3

Python377 行 · 完整显示
import numpy as np
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from scipy.stats import entropy
import json
from dataclasses import dataclass, asdict
from typing import List, Dict, Tuple

# ============================================================================
# 1. 数据模型定义
# ============================================================================

@dataclass
class VOCLabelExtraction:
    """VOC标签萃取结果数据类"""
    review_id: str
    source_platform: str
    product_line: str
    rating: int
    review_text: str
    aipl_stage: str
    problem_tags: List[str]
    sentiment_score: float
    proxy_nps_category: str
    consumer_portrait: str

# ============================================================================
# 2. 品线标签库初始化
# ============================================================================

class ProductLineTagLibrary:
    """品线隔离的标签库管理"""
    
    def __init__(self):
        self.tag_library = {
            "warming_bottle": {
                "product_problems": ["温度不均匀", "漏水", "加热缓慢", "噪音大", "显示屏故障"],
                "positive_signals": ["温度均匀", "加热快", "安静", "易清洁", "耐用"],
                "aipl_indicators": ["搜索评价", "对比产品", "推荐朋友", "重复购买", "社群分享"]
            },
            "breast_pump": {
                "product_problems": ["吸力不足", "漏奶", "噪音大", "电池续航差", "吸头不适"],
                "positive_signals": ["吸力强", "防漏", "静音", "续航长", "舒适"],
                "aipl_indicators": ["品牌认知", "产品对比", "用户评价", "复购意愿", "口碑传播"]
            },
            "maternity_wear": {
                "product_problems": ["易变形", "掉色", "不透气", "尺码不准", "支撑力差"],
                "positive_signals": ["弹性好", "耐洗", "透气", "尺码准", "支撑力强"],
                "aipl_indicators": ["品牌搜索", "款式对比", "评价阅读", "多次购买", "推荐分享"]
            }
        }
    
    def get_tags_by_line(self, product_line: str) -> Dict:
        """获取指定品线的标签集合"""
        return self.tag_library.get(product_line, {})

# ============================================================================
# 3. ABSA情感校准模块
# ============================================================================

class ABSASentimentCalibrator:
    """基于方面的情感分析校准器"""
    
    def __init__(self):
        self.sentiment_words = {
            "positive": ["好", "棒", "完美", "推荐", "满意", "喜欢", "excellent", "great", "love", "perfect"],
            "negative": ["差", "糟糕", "失望", "问题", "坏", "讨厌", "poor", "bad", "hate", "terrible"],
            "negation": ["不", "没有", "没", "无", "not", "no", "never"]
        }
    
    def calibrate_sentiment(self, text: str, aspect: str) -> float:
        """
        校准特定方面的情感分数
        返回值: -1.0(强负) ~ 1.0(强正)
        """
        text_lower = text.lower()
        
        # 检查否定词上下文
        negation_context = False
        for neg_word in self.sentiment_words["negation"]:
            if neg_word in text_lower:
                negation_context = True
        
        # 计算情感分数
        pos_count = sum(1 for word in self.sentiment_words["positive"] if word in text_lower)
        neg_count = sum(1 for word in self.sentiment_words["negative"] if word in text_lower)
        
        if negation_context:
            pos_count, neg_count = neg_count, pos_count
        
        if pos_count + neg_count == 0:
            return 0.0
        
        sentiment_score = (pos_count - neg_count) / (pos_count + neg_count)
        return sentiment_score

# ============================================================================
# 4. AIPL阶段推导引擎
# ============================================================================

class AIPLStageInference:
    """基于原子画像标签的AIPL阶段推导"""
    
    def __init__(self, tag_library: ProductLineTagLibrary):
        self.tag_library = tag_library
    
    def infer_aipl_stage(self, review_text: str, product_line: str) -> Tuple[str, List[str]]:
        """
        推导用户AIPL阶段
        返回: (阶段, 匹配的原子标签列表)
        """
        tags = self.tag_library.get_tags_by_line(product_line)
        aipl_indicators = tags.get("aipl_indicators", [])
        
        matched_tags = []
        for indicator in aipl_indicators:
            if indicator in review_text:
                matched_tags.append(indicator)
        
        # 阶段推导逻辑
        if "品牌搜索" in matched_tags or "品牌认知" in matched_tags:
            stage = "A"
        elif "产品对比" in matched_tags or "款式对比" in matched_tags:
            stage = "I"
        elif "用户评价" in matched_tags or "评价阅读" in matched_tags:
            stage = "P1"
        elif "推荐朋友" in matched_tags or "推荐分享" in matched_tags:
            stage = "P2"
        elif "重复购买" in matched_tags or "多次购买" in matched_tags:
            stage = "L1"
        elif "口碑传播" in matched_tags or "社群分享" in matched_tags:
            stage = "L2"
        elif "复购意愿" in matched_tags:
            stage = "L3"
        else:
            stage = "Unknown"
        
        return stage, matched_tags

# ============================================================================
# 5. 统一标签萃取引擎核心
# ============================================================================

class UnifiedVOCLabelExtractor:
    """VOC Proxy NPS × AIPL统一标签萃取引擎"""
    
    def __init__(self):
        self.tag_library = ProductLineTagLibrary()
        self.sentiment_calibrator = ABSASentimentCalibrator()
        self.aipl_engine = AIPLStageInference(self.tag_library)
    
    def extract_labels(self, review_id: str, platform: str, product_line: str, 
                      rating: int, review_text: str) -> VOCLabelExtraction:
        """
        统一标签萃取主流程
        """
        # 步骤1: 获取品线标签
        tags = self.tag_library.get_tags_by_line(product_line)
        
        # 步骤2: 匹配产品问题标签
        problem_tags = []
        for problem in tags.get("product_problems", []):
            if problem in review_text:
                problem_tags.append(problem)
        
        # 步骤3: ABSA情感校准
        sentiment_score = 0.0
        for problem in problem_tags:
            sentiment_score += self.sentiment_calibrator.calibrate_sentiment(review_text, problem)
        
        if problem_tags:
            sentiment_score /= len(problem_tags)
        else:
            # 全局情感评分
            sentiment_score = self.sentiment_calibrator.calibrate_sentiment(review_text, "overall")
        
        # 步骤4: AIPL阶段推导
        aipl_stage, aipl_tags = self.aipl_engine.infer_aipl_stage(review_text, product_line)
        
        # 步骤5: Proxy NPS分类
        proxy_nps_category = self._classify_proxy_nps(rating, problem_tags, sentiment_score)
        
        # 步骤6: 消费者画像推导
        consumer_portrait = self._infer_consumer_portrait(aipl_stage, problem_tags, sentiment_score)
        
        return VOCLabelExtraction(
            review_id=review_id,
            source_platform=platform,
            product_line=product_line,
            rating=rating,
            review_text=review_text,
            aipl_stage=aipl_stage,
            problem_tags=problem_tags,
            sentiment_score=sentiment_score,
            proxy_nps_category=proxy_nps_category,
            consumer_portrait=consumer_portrait
        )
    
    def _classify_proxy_nps(self, rating: int, problem_tags: List[str], 
                           sentiment_score: float) -> str:
        """
        Proxy NPS分类逻辑
        """
        # 规则1: 有产品问题 + 负向情感 = Detractor
        if problem_tags and sentiment_score < -0.3:
            return "Detractor"
        
        # 规则2: 无问题 + 评分≥4 = Promoter
        if not problem_tags and rating >= 4:
            return "Promoter"
        
        # 规则3: 有问题但正向情感 = Passive(用户可能接受缺陷)
        if problem_tags and sentiment_score >= 0.0:
            return "Passive"
        
        # 规则4: 评分≤2 = Detractor
        if rating <= 2:
            return "Detractor"
        
        return "Passive"
    
    def _infer_consumer_portrait(self, aipl_stage: str, problem_tags: List[str], 
                                sentiment_score: float) -> str:
        """
        消费者画像推导
        """
        if aipl_stage in ["L1", "L2", "L3"]:
            return "忠诚用户"
        elif aipl_stage in ["P1", "P2"]:
            return "高意向用户"
        elif aipl_stage == "I":
            return "比较型用户"
        elif aipl_stage == "A":
            return "认知型用户"
        else:
            return "未分类用户"

# ============================================================================
# 6. Proxy NPS计算引擎
# ============================================================================

class ProxyNPSCalculator:
    """Proxy NPS指标计算"""
    
    @staticmethod
    def calculate_proxy_nps(extractions: List[VOCLabelExtraction]) -> Dict:
        """
        计算Proxy NPS及相关指标
        """
        promoter_count = sum(1 for e in extractions if e.proxy_nps_category == "Promoter")
        detractor_count = sum(1 for e in extractions if e.proxy_nps_category == "Detractor")
        passive_count = sum(1 for e in extractions if e.proxy_nps_category == "Passive")
        total_count = len(extractions)
        
        proxy_nps = ((promoter_count - detractor_count) / total_count * 100) if total_count > 0 else 0
        
        # AIPL分布
        aipl_dist = {}
        for stage in ["A", "I", "P1", "P2", "L1", "L2", "L3"]:
            count = sum(1 for e in extractions if e.aipl_stage == stage)
            aipl_dist[stage] = round(count / total_count * 100, 1) if total_count > 0 else 0
        
        # 问题标签TOP 5
        all_problems = []
        for e in extractions:
            all_problems.extend(e.problem_tags)
        
        problem_freq = {}
        for problem in all_problems:
            problem_freq[problem] = problem_freq.get(problem, 0) + 1
        
        top_problems = sorted(problem_freq.items(), key=lambda x: x[1], reverse=True)[:5]
        
        return {
            "proxy_nps": round(proxy_nps, 1),
            "promoter_count": promoter_count,
            "detractor_count": detractor_count,
            "passive_count": passive_count,
            "total_count": total_count,
            "aipl_distribution": aipl_dist,
            "top_problems": top_problems
        }

# ============================================================================
# 7. 测试与演示
# ============================================================================

def main():
    """完整工作流演示"""
    
    # 初始化引擎
    extractor = UnifiedVOCLabelExtractor()
    calculator = ProxyNPSCalculator()
    
    # 模拟数据:暖奶器Amazon评论
    sample_reviews = [
        {
            "review_id": "R001",
            "platform": "Amazon",
            "product_line": "warming_bottle",
            "rating": 5,
            "text": "温度均匀,加热快,非常推荐朋友购买,已重复购买3次"
        },
        {
            "review_id": "R002",
            "platform": "Amazon",
            "product_line": "warming_bottle",
            "rating": 4,
            "text": "总体不错,但温度不均匀,有时候上面热下面冷"
        },
        {
            "review_id": "R003",
            "platform": "Amazon",
            "product_line": "warming_bottle",
            "rating": 3,
            "text": "漏水问题很严重,加热缓慢,对比了其他产品还是有差距"
        },
        {
            "review_id": "R004",
            "platform": "Amazon",
            "product_line": "warming_bottle",
            "rating": 2,
            "text": "噪音大,显示屏故障,非常失望,不推荐"
        },
        {
            "review_id": "R005",
            "platform": "Amazon",
            "product_line": "warming_bottle",
            "rating": 5,
            "text": "完美产品,易清洁,耐用,社群分享给很多朋友"
        }
    ]
    
    # 执行标签萃取
    extractions = []
    for review in sample_reviews:
        extraction = extractor.extract_labels(
            review_id=review["review_id"],
            platform=review["platform"],
            product_line=review["product_line"],
            rating=review["rating"],
            review_text=review["text"]
        )
        extractions.append(extraction)
        
        print(f"\n[评论 {review['review_id']}]")
        print(f"  评分: {review['rating']}星")
        print(f"  问题标签: {extraction.problem_tags if extraction.problem_tags else '无'}")
        print(f"  情感分数: {extraction.sentiment_score:.2f}")
        print(f"  AIPL阶段: {extraction.aipl_stage}")
        print(f"  Proxy NPS类别: {extraction.proxy_nps_category}")
        print(f"  消费者画像: {extraction.consumer_portrait}")
    
    # 计算Proxy NPS指标
    metrics = calculator.calculate_proxy_nps(extractions)
    
    print("\n" + "="*60)
    print("【Proxy NPS统计结果】")
    print("="*60)
    print(f"Proxy NPS得分: {metrics['proxy_nps']}")
    print(f"推荐者(Promoter): {metrics['promoter_count']}人 ({metrics['promoter_count']/metrics['total_count']*100:.1f}%)")
    print(f"贬低者(Detractor): {metrics['detractor_count']}人 ({metrics['detractor_count']/metrics['total_count']*100:.1f}%)")
    print(f"被动者(Passive): {metrics['passive_count']}人 ({metrics['passive_count']/metrics['total_count']*100:.1f}%)")
    
    print(f"\n【AIPL分布】")
    for stage, pct in metrics['aipl_distribution'].items():
        print(f"  {stage}阶段: {pct}%")
    
    print(f"\n【TOP 5问题标签】")
    for problem, freq in metrics['top_problems']:
        print(f"  {problem}: {freq}次")
    
    print("\n[✓] Skill-VOC-Proxy-NPS-AIPL-统一萃取引擎测试通过")

if __name__ == "__main__":
    main()

8. 论文来源

论文链接用于核验方法来源,不自动证明本页商业结果。

未自动抽取;请查看原始 Skill 卡片。