Detects whether specified text contains anomalies, such as pornography, advertisements, excessive junk content, politically sensitive content, and abuse.
Operation description
-
Before you call this operation, make sure that you are familiar with the billing of Intelligent Media Management (IMM).****
The text compliance detection feature only supports Chinese characters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:DetectTextAnomaly |
none |
*Project
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The name of the project. For more information, see CreateProject. |
immtest |
| Content |
string |
Yes |
The text to be detected. It can contain up to 10,000 characters (including punctuation marks). Only Chinese text can be detected. |
content |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
91AC8C98-0F36-49D2-8290-742E24DF***** |
| Suggestion |
string |
Indicates whether the text contains anomalies. Valid values:
Valid values:
|
pass |
Examples
Success response
JSON format
{
"RequestId": "91AC8C98-0F36-49D2-8290-742E24DF*****",
"Suggestion": "pass"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.