一种基于AI的反垃圾评论方案

Jeff's
57 0

基于API。对于没有大量评论的小博客很适合。

样例返回内容

正常

{
  "success": true,
  "a": "",
  "has_abnormal_context": false,
  "risk_score": "0",
  "trade_id": "dc602212-2316-48fa-8739-c94fc0e8f667",
  "items": []
}

广告

{
  "success": true,
  "a": "",
  "has_abnormal_context": true,
  "risk_score": "0.8",
  "trade_id": "226ac367-1aaf-40ac-a42a-5293f0f8ad7b",
  "items": [
    {
      "text": "限时抢购",
      "type": "UnwelcomeCommercial",
      "reason": "文本中出现了'限时抢购'的字样,有广告嫌疑"
    },
    {
      "text": "诺贝尔奖技术突破",
      "type": "UnwelcomeCommercial",
      "reason": "虽然诺贝尔奖技术听起来很权威,但结合'限时抢购'和'惊爆价'等词汇,有广告宣传的嫌疑"
    },
    {
      "text": "戴上就能年轻10岁",
      "type": "UnwelcomeCommercial",
      "reason": "这种表述有夸大其词的嫌疑,属于不正常的商业宣传"
    },
    {
      "text": "原价9980元,今天前50名下单,惊爆价仅需299元",
      "type": "UnwelcomeCommercial",
      "reason": "价格优惠且限定购买数量,典型的广告促销手段"
    },
    {
      "text": "买一送三,再送价值1980元的高档养生水杯",
      "type": "UnwelcomeCommercial",
      "reason": "赠送高档商品也是一种广告策略,有诱导消费的嫌疑"
    },
    {
      "text": "编辑短信“我要健康”发送至 1069xxxxx 领取优惠",
      "type": "UnwelcomeCommercial",
      "reason": "通过发送短信来宣传产品,属于广告推广手段"
    }
  ]
}

辱骂 (为免影响论坛访问已对结果进行处理)

  "success": true,
  "a": "",
  "has_abnormal_context": true,
  "risk_score": "0.8",
  "trade_id": "3973930d-416b-49a2-be5f-c3e3f71bff51",
  "items": [
    {
      "text": "发一条CIA给你多少钱?",
      "type": "Other",
      "reason": "涉及非法话题"
    },
    {
      "text": "美国远程畜牧养殖真好",
      "type": "Other",
      "reason": "涉及非法话题"
    },
    {
      "text": "*国全是大*子",
      "type": "Other",
      "reason": "涉及非法话题"
    },
    {
      "text": "不买*还宣传*不好",
      "type": "Other",
      "reason": "涉及非法话题"
    },
    {
      "text": "美国到时候遥控*手机炸死你",
      "type": "Violent",
      "reason": "涉及暴力言论"
    },
    {
      "text": "傻*",
      "type": "AbusiveOrPersonalAttack",
      "reason": "辱骂他人"
    }
  ]
}

 

NSW School student. WHOIS
最新回复 ( 0 )
发新帖