内容审核 MODERATION-查询文档审核作业结果:响应示例

时间:2024-12-20 14:22:36

响应示例

状态码: 200

成功响应示例

{
  "job_id" : "xxxxxx",
  "status" : "succeeded",
  "result" : {
    "suggestion" : "block",
    "details" : [ {
      "start_position" : 1,
      "end_position" : 10,
      "suggestion" : "block",
      "index" : 12,
      "label" : "porn",
      "type" : "text",
      "text" : "xxxxxxxxx",
      "segments" : [ {
        "segment" : "xxx"
      }, {
        "segment" : "xxx"
      }, {
        "segment" : "xxx"
      } ]
    } ]
  },
  "request_params" : {
    "data" : {
      "url" : "https://xxxxx",
      "format" : "pdf"
    },
    "event_type" : "default",
    "image_categories" : [ "politics", "porn", "image_text", "terrorism" ],
    "text_categories" : [ "default" ],
    "callback" : "http://xxx"
  }
}

状态码: 400

失败响应示例

{
  "error_code" : "AIS.0030",
  "error_msg" : "Job not found"
}
support.huaweicloud.com/api-moderation/moderation_03_0095.html