Skip to content

KeywordLibProps

Properties for defining a KeywordLib.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkaligreen"
&alicloudroscdkaligreen.KeywordLibProps {
    KeywordLibName: interface{},
    ResourceType: interface{},
    BizTypes: interface{},
    Category: interface{},
    Enable: interface{},
    Language: interface{},
    LibType: interface{},
    MatchMode: interface{},
}

Properties

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

KeywordLibNameRequired

KeywordLibName interface{}
  • Type: interface{}

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

ResourceType interface{}
  • Type: interface{}

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

BizTypes interface{}
  • Type: interface{}

Property bizTypes: The business scenario.

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


CategoryOptional

Category interface{}
  • Type: interface{}

Property category: The category of the text library.

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


EnableOptional

Enable interface{}
  • Type: interface{}

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


LanguageOptional

Language interface{}
  • Type: interface{}

Property language: Language used by the text Library.

Example: zh:Chinese、en:English


LibTypeOptional

LibType interface{}
  • Type: interface{}

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

MatchMode interface{}
  • Type: interface{}

Property matchMode: The matching method.

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