Documentation ¶
Index ¶
- func GenReqDefForRunCheckResult() *def.HttpRequestDef
- func GenReqDefForRunCheckTaskJobs() *def.HttpRequestDef
- func GenReqDefForRunImageBatchModeration() *def.HttpRequestDef
- func GenReqDefForRunImageModeration() *def.HttpRequestDef
- func GenReqDefForRunTaskSumbit() *def.HttpRequestDef
- func GenReqDefForRunTextModeration() *def.HttpRequestDef
- func ModerationClientBuilder() *http_client.HcHttpClientBuilder
- type ModerationClient
- func (c *ModerationClient) RunCheckResult(request *model.RunCheckResultRequest) (*model.RunCheckResultResponse, error)
- func (c *ModerationClient) RunCheckTaskJobs(request *model.RunCheckTaskJobsRequest) (*model.RunCheckTaskJobsResponse, error)
- func (c *ModerationClient) RunImageBatchModeration(request *model.RunImageBatchModerationRequest) (*model.RunImageBatchModerationResponse, error)
- func (c *ModerationClient) RunImageModeration(request *model.RunImageModerationRequest) (*model.RunImageModerationResponse, error)
- func (c *ModerationClient) RunTaskSumbit(request *model.RunTaskSumbitRequest) (*model.RunTaskSumbitResponse, error)
- func (c *ModerationClient) RunTextModeration(request *model.RunTextModerationRequest) (*model.RunTextModerationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForRunCheckResult ¶
func GenReqDefForRunCheckResult() *def.HttpRequestDef
func GenReqDefForRunCheckTaskJobs ¶
func GenReqDefForRunCheckTaskJobs() *def.HttpRequestDef
func GenReqDefForRunImageBatchModeration ¶
func GenReqDefForRunImageBatchModeration() *def.HttpRequestDef
func GenReqDefForRunImageModeration ¶
func GenReqDefForRunImageModeration() *def.HttpRequestDef
func GenReqDefForRunTaskSumbit ¶
func GenReqDefForRunTaskSumbit() *def.HttpRequestDef
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) RunCheckResult ¶
func (c *ModerationClient) RunCheckResult(request *model.RunCheckResultRequest) (*model.RunCheckResultResponse, error)
分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。
func (*ModerationClient) RunCheckTaskJobs ¶
func (c *ModerationClient) RunCheckTaskJobs(request *model.RunCheckTaskJobsRequest) (*model.RunCheckTaskJobsResponse, error)
查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。
func (*ModerationClient) RunImageBatchModeration ¶
func (c *ModerationClient) RunImageBatchModeration(request *model.RunImageBatchModerationRequest) (*model.RunImageBatchModerationResponse, error)
分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。
func (*ModerationClient) RunImageModeration ¶
func (c *ModerationClient) RunImageModeration(request *model.RunImageModerationRequest) (*model.RunImageModerationResponse, error)
分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。
func (*ModerationClient) RunTaskSumbit ¶
func (c *ModerationClient) RunTaskSumbit(request *model.RunTaskSumbitRequest) (*model.RunTaskSumbitResponse, error)
提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。
func (*ModerationClient) RunTextModeration ¶
func (c *ModerationClient) RunTextModeration(request *model.RunTextModerationRequest) (*model.RunTextModerationResponse, error)
分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。
Click to show internal directories.
Click to hide internal directories.