name: review-sentiment-analysis description: 对评论语料库进行情感分析,分类正面/负面/中性,提取情感关键短语并按ASIN/品牌聚合 version: 1.3.0
review-sentiment-analysis
对评论语料库进行情感分析,使用情感短语规则(regex多词匹配)和星级回退分类,生成情感词云,按ASIN/品牌聚合情感指标。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| reviewCorpus | object | 是 | review-batch-collection 输出的评论语料 |
| language | string | 否 | 语言,默认 "en" |
| sentimentThreshold | object | 否 | 情感分类阈值 {positiveMin, negativeMax},默认 {0.6, 0.4} |
review-analysis/review-batch-collection{
"reviewSentiments": [
{
"reviewId": "...",
"asin": "B0B24QJ217",
"sentiment": "positive",
"score": 0.85,
"keyPhrases": ["perfect scent", "long lasting", "beautiful packaging"]
}
],
"asinAggregation": {
"B0B24QJ217": {
"positiveRate": 72.5,
"negativeRate": 15.3,
"neutralRate": 12.2,
"topPositive": ["scent quality", "packaging"],
"topNegative": ["reed quality", "oil leaking"]
}
},
"globalHotPhrases": {
"positive": [
{ "phrase": "great scent", "count": 45, "score": 0.92 }
],
"negative": [
{ "phrase": "reeds dry out", "count": 23, "score": 0.15 }
]
},
"sentimentWordCloud": [
{ "word": "scent", "sentiment": "positive", "count": 120, "weight": 95 },
{ "word": "leak", "sentiment": "negative", "count": 35, "weight": 42 },
{ "word": "packaging", "sentiment": "neutral", "count": 28, "weight": 33 }
]
}
Day1 晚 20:30-21:30「认知校准&关键词梳理」