Updated on 2023-01-18 GMT+08:00
(Optional) Configuring Custom Dictionaries
Function
Before using the Text Moderation service, you can configure a custom whitelist dictionary or blacklist dictionary to filter and detect specified text.
- You can use custom dictionaries for free.
- A maximum of 10 custom blacklist dictionaries and 10 custom whitelist dictionaries can be created for an account.
- Custom whitelist dictionaries cannot be used in the flood scenario.
Procedure
- Log in to the Content Moderation console. In the left navigation pane, choose Settings > Custom Dictionary.
- On the displayed page, click the Blocklist Libraries or Allowlist Libraries tab and then Create Dictionary.
Figure 1 Creating a dictionary
- In the displayed dialog box, enter a dictionary name and keywords.
- Dictionary Name: A dictionary name contains a maximum of 40 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.
- Add Keyword: A dictionary contains a maximum of 10,000 keywords. Each keyword consists of a maximum of 50 characters and ends with a carriage return.
- Click OK.
- The dictionary name cannot be changed.
- After a whitelist dictionary is configured, the whitelist takes effect by default in any detection scenario.
- The created dictionary can be used in the request parameter categories. Setting categories to the dictionary name is setting a custom scenario.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot