Skip to content

KeywordLibProps

Properties for defining a KeywordLib.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-aligreen-keywordlib

Initializer

using AlibabaCloud.SDK.ROS.CDK.Aligreen;
new KeywordLibProps {
    object KeywordLibName,
    object ResourceType,
    object BizTypes = null,
    object Category = null,
    object Enable = null,
    object Language = null,
    object LibType = null,
    object MatchMode = null
};

Properties

Name Type Description
KeywordLibName object Property keywordLibName: The name of the keyword library defined by the customer.
ResourceType object Property resourceType: The moderation scenario to which the text library applies.
BizTypes object Property bizTypes: The business scenario.
Category object Property category: The category of the text library.
Enable object Property enable: Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.
Language object Property language: Language used by the text Library.
LibType object Property libType: The category of the text library in each moderation scenario.
MatchMode object Property matchMode: The matching method.

KeywordLibNameRequired

public object KeywordLibName { get; set; }
  • Type: object

Property keywordLibName: The name of the keyword library defined by the customer.

It can contain no more than 20 characters in Chinese, English, and underscore (_).


ResourceTypeRequired

public object ResourceType { get; set; }
  • Type: object

Property resourceType: The moderation scenario to which the text library applies.

Valid values:TEXT: text anti-spam、IMAGE: ad violation detection、VOICE: audio anti-spam.


BizTypesOptional

public object BizTypes { get; set; }
  • Type: object

Property bizTypes: The business scenario.

Example:["bizTypeA","bizTypeB"].


CategoryOptional

public object Category { get; set; }
  • Type: object

Property category: The category of the text library.

Valid values: BLACK: a blacklist. WHITE: a whitelist. REVIEW: a review list.


EnableOptional

public object Enable { get; set; }
  • Type: object

Property enable: Specifies whether to enable text library.true: Enable the text library. This is the default value.false: Disable the text library.


LanguageOptional

public object Language { get; set; }
  • Type: object

Property language: Language used by the text Library.

Example: zh:Chinese、en:English


LibTypeOptional

public object LibType { get; set; }
  • Type: object

Property libType: The category of the text library in each moderation scenario.

Valid values: textKeyword: a text library against which terms in text are matched. similarText: a text library against which text patterns are matched. voiceText: a text library against which terms converted from audio are matched.


MatchModeOptional

public object MatchMode { get; set; }
  • Type: object

Property matchMode: The matching method.

Valid values:fuzzy: fuzzy match precise: exact match.