tencent cloud

Feedback

Forum Comment Recognition

Last updated: 2023-12-21 17:32:27
    You can directly call the TextModeration API to recognize forum comments (such as shopping website reviews, community replies, and video comments).
    Note:
    Before calling the API, make sure that the current account has at least the access permission of TMS. For more information on how to configure the permission, see CAM Authorization Guide.
    If you cannot access the TMS service, you will need to activate the service/check the billing information (for root account) or request the corresponding permission from the admin or root account (for sub-account/collaborator).

    Step 1. Configure a custom dictionary (optional)

    The custom dictionary is used to configure the personalized recognition content. You can skip this step if you don't need to configure a custom library.
    1. Log in to the CMS console and select TMS > Custom Library Management > Custom Dictionary on the left sidebar to enter the Custom Dictionary page.
    2. On the Custom Dictionary page, click Add Dictionary in the top-left corner to pop up the Create Dictionary window.
    3. In the Create Dictionary pop-up window, configure a custom library based on your business needs.
    
    
    4. Click OK.
    5. On the Custom Dictionary page, select the target dictionary and click Manage in the Operation column to enter the dictionary content management page.
    
    
    6. On the dictionary content management page, click Add Sample in the top-left corner to pop up the Add Sample window.
    7. In the Add Sample pop-up window, select the recognition details, enter keywords, and click OK.
    Note:
    Recognition Details: violation type that corresponds to the recognition model.
    Keywords: each keyword can contain up to 20 characters, and a maximum of 500 keywords separated by line breaks can be batch submitted at a time.
    
    
    8. On the Custom Dictionary page, select the target dictionary and click
    
    in the Operation column to enable or disable it.
    Note:
    After the dictionary is disabled, samples in it will not be used to match and recognize image content.
    9.After configuring the custom dictionary, you can associate it with the policy created in Configure a task policy.

    Step 2. Configure a task policy (optional)

    You can skip this step if you use the preset default policy. The default policy is developed by TenDI based on models for multiple industries. It is suitable for most content security requirements.
    1. Log in to the CMS console and select TMS > Policy Management on the left sidebar to enter the Policy Management page.
    2. On the Policy Management page, click Create Policy in the top-left corner to enter the Create Policy page.
    3. On the Create Policy page, set the relevant policy information, including the policy name, Biztype name, associated service template (not required currently), and industry category (select whether to use TenDI's preset industry templates for recognition), and click Next.
    
    
    4. Configure the recognition policy, select whether to recognize different types of risky content based on your business needs, enter relevant information, and click Next.
    5. Configure the custom library, select whether to configure the custom dictionary, enter relevant information, and click Next.
    6. After the creation is completed, you can view the policy configuration information on this page. After confirming it, click Complete.

    Step 3. Create a task and get the recognition result (optional)

    After completing the above steps, you can call the TextModeration API to create a comment recognition task as instructed below:
    Make sure that the text to be recognized meets the file format requirements of the API.
    Enter the input parameters as instructed in the API documentation.
    If the task is created successfully, the API will return the detailed recognition result, and you can refer to Text Content Recognition Sample for more information on sample response parameters. If task creation failed, the API will return an error code, and you can refer to Business Error Codes and Common Error Codes for troubleshooting.
    Note:
    When connecting to the service, you can use API Explorer for online debugging.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support