Sign up for a Tencent Cloud account as instructed in Signing up for a Tencent Cloud Account.
Note:You can skip this step if you already have a Tencent Cloud account.
The account created when you sign up for a Tencent Cloud account is the root account, which has the management permissions of all resources under it. If you need your team members to assist you in managing resources under your account, you can use the CAM feature to create one or more sub-accounts, bind permission policies to them, and then assign them to team members. For detailed directions, see Creating Sub-user.
A newly created sub-account has no permissions by default and requires the root account or admin to bind a policy to it before it can have the operation permissions of certain resources. You can configure access to TMS with CAM for sub-accounts as instructed in CAM Authorization Guide.
Log in to the CMS console and select any menu under TMS on the left sidebar.
We recommend you configure a task policy based on your business needs for a personalized user experience.
Note:
- You can skip this step if you use the preset default policy of Tencent Cloud TMS.
- The default policy is developed by TenDI based on models for multiple industries. It is suitable for most content security requirements.
Parameter description:
Parameter | Description |
---|---|
Policy Name | Text description of the policy, which can contain up to 30 letters, digits, and underscores. |
Biztype Name | Specific policy number used for API calls, which can contain 3–32 letters, digits, and underscores and must be unique. |
Industry Category | Category of the industry scenario involved in the policy. |
Use Industry Template | It will be displayed only when Industry Category is set. You can select whether to use Tencent Cloud's preset industry templates for moderation. |
On the Recognition Policy Configuration page, select whether to moderate different types of content based on your business needs and click Next.
On the Custom Library Configuration page, select a custom dictionary for content moderation in the Custom Dictionary drop-down list. If there are no custom libraries, you can click Next or save the current policy and go to Step 5. Configure a custom dictionary.
On the Creation Completion page, you can view the policy configuration information. After confirming it, click Complete.
The policy just created will be displayed in the list on the right of the Policy Management page.
You can configure a custom dictionary to recognize whether images contain non-compliant text.
Note:You can skip this step if you don't need to configure a custom dictionary.
Parameter description:
Parameter | Description |
---|---|
Dictionary Name | Text description of the dictionary, which can contain up to 32 letters, digits, and underscores. |
Handling Suggestion | You can select Non-compliant or Suspected. |
Match Mode | For Chinese characters, both exact matching and fuzzy matching are supported. For alphabet letters, only fuzzy matching is supported. |
Click OK.
The dictionary just created will be displayed in the list below the Custom Dictionary tab.
Note:Different colors in a custom dictionary represent different blocking logics, where red represents "non-compliant", and orange represents "suspected".
On the Custom Dictionary page, select the dictionary just created and click Manage in the Operation column to enter the dictionary management page.
On the dictionary management page, click Add Sample to pop up the Add Sample window.
In the Add Sample pop-up window, select the handling suggestion, enter keywords, and click OK.
Parameter description:
Parameter | Description |
---|---|
Handling Suggestion | Violation type that corresponds to the recognition model. |
Keyword |
Note:After configuring the custom dictionary, you can associate it with the policy created in Step 4. Configure a policy.
After completing the above steps, you can select the created moderation policy and moderate text to try out the TMS service.
Log in to the CMS console and select TMS > Demo on the left sidebar to enter the Demo page.
On the Demo page, select the desired moderation policy and enter the text to be moderated.
Note:The text must meet the following requirements:
- Text Content Size: the text length cannot exceed 10,000, calculated based on Unicode encoding.
- Supported Language: Chinese.
Click Moderate Now, and the moderation result of the text will be displayed below the moderated content.
To connect to TMS, you need to call APIs. For detailed directions, see API Connection Guide.
Note:
Before calling APIs, you need to get the Tencent Cloud API access key in the following steps. Tencent Cloud usesSecretId
andSecretKey
to verify your identity and permissions.
Go to the TencentCloud API key management page, select CAM > API Key Management on the left sidebar, click Create Key to create a key, and save theSecretId
andSecretKey
for subsequent API calls.
Was this page helpful?