History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
GET /text/auditing/<jobId> HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
<Response><JobsDetail><Code>Success</Code><Message>Success</Message><DataId></DataId><JobId></JobId><State></State><CreationTime></CreationTime><Object></Object><SectionCount></SectionCount><Result>1</Result><PornInfo><HitFlag></HitFlag><Count></Count></PornInfo><AdsInfo><HitFlag></HitFlag><Count></Count></AdsInfo><IllegalInfo><HitFlag></HitFlag><Count></Count></IllegalInfo><AbuseInfo><HitFlag></HitFlag><Count></Count></AbuseInfo></Section><StartByte></StartByte><PornInfo><HitFlag></HitFlag><Score></Score><Keywords></Keywords></PornInfo><AdsInfo><HitFlag></HitFlag><Score></Score><Keywords></Keywords></AdsInfo><IllegalInfo><HitFlag></HitFlag><Score></Score><Keywords></Keywords></IllegalInfo><AbuseInfo><HitFlag></HitFlag><Score></Score><Keywords></Keywords></AbuseInfo></Section></Section><StartByte></StartByte><PornInfo><HitFlag></HitFlag><Score></Score><Keywords></Keywords></PornInfo><AdsInfo><HitFlag></HitFlag><Score></Score><Keywords></Keywords></AdsInfo><IllegalInfo><HitFlag></HitFlag><Score></Score><Keywords></Keywords></IllegalInfo><AbuseInfo><HitFlag></HitFlag><Score></Score><Keywords></Keywords></AbuseInfo></Section></JobsDetail><RequestId></RequestId></Response>
节点名称(关键字) | 父节点 | 描述 | 类型 |
Response | 无 | 保存结果的容器 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
JobsDetail | Response | 任务的详细信息 | Container |
RequestId | Response | 每次请求发送时,服务端将会自动为请求生成一个 ID,遇到问题时,该 ID 能更快地协助定位问题 | String |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Code | Response.JobsDetail | String | |
Message | Response.JobsDetail | 错误描述,只有 State 为 Failed 时返回。 | String |
DataId | Response.JobsDetail | 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 | String |
JobId | Response.JobsDetail | 本次审核任务的 ID。 | String |
State | Response.JobsDetail | 任务的状态,值为 Submitted(已提交审核)、Success(审核成功)、Failed(审核失败)、Auditing(审核中)其中一个。 | String |
CreationTime | Response.JobsDetail | 任务的创建时间。 | String |
Object | Response.JobsDetail | 审核的对象名称,当创建任务使用 Object 时返回。 | String |
Content | Response.JobsDetail | 文本内容的 Base64 编码。当创建任务使用 Content 时返回。 | String |
SectionCount | Response.JobsDetail | 文本审核会将文本进行分段送审,每10000个 utf8 编码字符分一段,该参数表示分段的数量。 | Integer |
Label | Response.JobsDetail | 该字段用于返回检测结果中所对应的优先级最高的恶意标签,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。 返回值:Normal:正常,Porn:色情,Ads:广告,以及其他不安全或不适宜的类型。 | String |
Result | Response.JobsDetail | 该字段表示本次判定的审核结果,您可以根据该结果,进行后续的操作;建议您按照业务所需,对不同的审核结果进行相应处理。 有效值:0(审核正常),1 (判定为违规敏感文件),2(疑似敏感,建议人工复核)。 | Integer |
PornInfo | Response.JobsDetail | 审核场景为涉黄的审核结果信息。 | Container |
AdsInfo | Response.JobsDetail | 审核场景为广告引导的审核结果信息。 | Container |
IllegalInfo | Response.JobsDetail | 审核场景为违法的审核结果信息。 | Container |
AbuseInfo | Response.JobsDetail | 审核场景为谩骂的审核结果信息。 | Container |
Section | Response.JobsDetail | 具体文本分片的审核结果信息。 | Container Array |
UserInfo | Response.JobsDetail | 用户业务字段。 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
HitFlag | Response.JobsDetail.*Info | 用于返回该审核场景的审核结果,返回值: 0:正常。 1:确认为当前场景的违规内容。 2:疑似为当前场景的违规内容。 | Integer |
Count | Response.JobsDetail.*Info | 命中该审核分类的分片数。 | Integer |
节点名称(关键字) | 父节点 | 描述 | 类型 |
StartByte | Response.JobsDetail.Section | 该分片位于文本中的起始位置信息(即10代表第11个 utf8 文字)。从0开始。 | Integer |
Label | Response.JobsDetail.Section | 该字段用于返回检测结果中所对应的优先级最高的恶意标签,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。 返回值:Normal:正常,Porn:色情,Ads:广告,以及其他不安全或不适宜的类型。 | String |
Result | Response.JobsDetail.Section | 该字段表示本次判定的审核结果,您可以根据该结果,进行后续的操作;建议您按照业务所需,对不同的审核结果进行相应处理。 有效值:0(审核正常),1 (判定为违规敏感文件),2(疑似敏感,建议人工复核)。 | Integer |
PornInfo | Response.JobsDetail.Section | 审核场景为涉黄的审核结果信息。 | Container |
AdsInfo | Response.JobsDetail.Section | 审核场景为广告引导的审核结果信息。 | Container |
IllegalInfo | Response.JobsDetail.Section | 审核场景为违法的审核结果信息。 | Container |
AbuseInfo | Response.JobsDetail.Section | 审核场景为谩骂的审核结果信息。 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
HitFlag | Response.JobsDetail.Section.*Info | 用于返回该审核场景的审核结果,返回值:
0:正常。
1:确认为当前场景的违规内容。
2:疑似为当前场景的违规内容。 | Integer |
Score | Response.JobsDetail.Section.*Info | 该分片中审核的结果分数,分数越高表示越敏感。 | Integer |
Keywords | Response.JobsDetail.Section.*Info | 在当前审核场景下命中的关键词,多关键词以 ,分隔。 | String |
节点名称(关键字) | 父节点 | 描述 | 类型 |
TokenId | Response.JobsDetail.UserInfo | 用户业务 TokenId,长度不超过128字节。 | String |
Nickname | Response.JobsDetail.UserInfo | 用户业务 Nickname,长度不超过128字节。 | String |
DeviceId | Response.JobsDetail.UserInfo | 用户业务 DeviceId,长度不超过128字节。 | String |
AppId | Response.JobsDetail.UserInfo | 用户业务 AppId,长度不超过128字节。 | String |
Room | Response.JobsDetail.UserInfo | 用户业务 Room,长度不超过128字节。 | String |
IP | Response.JobsDetail.UserInfo | 用户业务 IP,长度不超过128字节。 | String |
Type | Response.JobsDetail.UserInfo | 用户业务 Type,长度不超过128字节。 | String |
GET /text/auditing/stb1ca9fc8a3ed11ea834c525400863904 HTTP/1.1Accept: */*Authorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=28e9a4986df11bed0255e97ff90500557e0e****Host: examplebucket-1250000000.ci.ap-beijing.myqcloud.com
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 666Connection: keep-aliveDate: Thu, 15 Jun 2017 12:37:29 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><JobId>st78925397b9de11eba532525400946f76</JobId><State>Success</State><CreationTime>2021-05-21T10:44:32+08:00</CreationTime><Object>test.txt</Object><SectionCount>1</SectionCount><Label>Illegal</Label><Result>1</Result><PornInfo><HitFlag>0</HitFlag><Count>0</Count></PornInfo><AdsInfo><HitFlag>0</HitFlag><Count>0</Count></AdsInfo><IllegalInfo><HitFlag>0</HitFlag><Count>0</Count></IllegalInfo><AbuseInfo><HitFlag>0</HitFlag><Count>0</Count></AbuseInfo><Section><StartByte>0</StartByte><Label>Illegal</Label><Result>1</Result><PornInfo><HitFlag>0</HitFlag><Score>0</Score><Keywords></Keywords></PornInfo><AdsInfo><HitFlag>0</HitFlag><Score>0</Score><Keywords></Keywords></AdsInfo><IllegalInfo><HitFlag>0</HitFlag><Score>0</Score><Keywords></Keywords></IllegalInfo><AbuseInfo><HitFlag>0</HitFlag><Score>0</Score><Keywords></Keywords></AbuseInfo></Section></JobsDetail><RequestId>xxxxxxxxxxxxxx</RequestId></Response>
文档反馈