Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForRunTextModeration ¶
func GenReqDefForRunTextModeration() *def.HttpRequestDef
func ModerationClientBuilder ¶
func ModerationClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type ModerationClient ¶
type ModerationClient struct {
HcClient *http_client.HcHttpClient
}
func NewModerationClient ¶
func NewModerationClient(hcClient *http_client.HcHttpClient) *ModerationClient
func (*ModerationClient) RunTextModeration ¶
func (c *ModerationClient) RunTextModeration(request *model.RunTextModerationRequest) (*model.RunTextModerationResponse, error)
RunTextModeration 文本内容审核
分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ModerationClient) RunTextModerationInvoker ¶
func (c *ModerationClient) RunTextModerationInvoker(request *model.RunTextModerationRequest) *RunTextModerationInvoker
RunTextModerationInvoker 文本内容审核
type RunTextModerationInvoker ¶
type RunTextModerationInvoker struct {
*invoker.BaseInvoker
}
func (*RunTextModerationInvoker) Invoke ¶
func (i *RunTextModerationInvoker) Invoke() (*model.RunTextModerationResponse, error)
Click to show internal directories.
Click to hide internal directories.