内容审核审阅、工作流和作业Content moderation reviews, workflows, and jobs

内容审查器将计算机辅助的审核与人机回环功能相结合,为真实场景创建最佳审核流程。Content Moderator combines machine-assisted moderation with human-in-the-loop capabilities to create an optimal moderation process for real-world scenarios. 它通过基于云的审阅工具来完成此操作。It does this through the cloud-based Review tool. 本指南介绍审阅工具(审阅、工作流和作业)的核心概念。In this guide, you will learn about the core concepts of the Review tool: reviews, workflows, and jobs.

审阅Reviews

在审阅中,内容上传到审阅工具并显示在“审阅”选项卡下****。在这里,用户可以更改已应用的标记,并根据需要应用自己的自定义标记。In a review, content is uploaded to the Review tool and appears under the Review tab. From here, users can alter the applied tags and apply their own custom tags as appropriate. 当用户提交审阅时,系统会将结果发送到指定的回调终结点,并从网站中删除内容。When a user submits a review, the results are sent to a specified callback endpoint, and the content is removed from the site.

在浏览器中打开的审阅工具网站,在“审阅”选项卡上

若要开始创建审阅,请参阅审阅工具指南;若要了解如何以编程方式创建审阅,请参阅 REST API 指南See the Review tool guide to get started creating reviews, or see the REST API guide to learn how to do so programmatically.

工作流Workflows

工作流是一种基于云的自定义内容筛选器。A workflow is a cloud-based customized filter for content. 工作流可以连接到多种服务,以通过不同的方式筛选内容,然后采取相应操作。Workflows can connect to a variety of services to filter content in different ways and then take the appropriate action. 使用内容审查器连接器,工作流可以自动应用审核标记并使用提交的内容创建审阅。With the Content Moderator connector, a workflow can automatically apply moderation tags and create reviews with submitted content.

查看工作流View workflows

若要查看现有工作流,请转到审阅工具,然后选择“设置”**** > “工作流”****。To view your existing workflows, go to the Review tool and select Settings > Workflows.

默认工作流

可以采用 JSON 字符串的形式完整描述工作流,这样就能够以编程方式访问它们。Workflows can be completely described as JSON strings, which makes them accessible programmatically. 如果为工作流选择“编辑”**** 选项,然后选择“JSON”**** 选项卡,则会看到类似以下内容的 JSON 表达式:If you select the Edit option for your workflow and then select the JSON tab, you'll see a JSON expression like the following:

{
    "Type": "Logic",
    "If": {
        "ConnectorName": "moderator",
        "OutputName": "isAdult",
        "Operator": "eq",
        "Value": "true",
        "Type": "Condition"
        },
    "Then": {
    "Perform": [
    {
        "Name": "createreview",
        "CallbackEndpoint": null,
        "Tags": []
    }
    ],
    "Type": "Actions"
    }
}

若要开始创建和使用工作流,请参阅审阅工具指南;若要了解如何以编程方式创建审阅,请参阅 REST API 指南See the Review tool guide to get started creating and using workflows, or see the REST API guide to learn how to do so programmatically.

作业Jobs

审核作业充当内容审核、工作流和审阅功能的一种包装器。A moderation job serves as a kind of wrapper for the functionality of content moderation, workflows and reviews. 该作业使用内容审查器图像审核 API 或文本审核 API 扫描内容,然后根据指定的工作流对其进行检查。The job scans your content using the Content Moderator image moderation API or text moderation API and then checks it against the designated workflow. 根据工作流的结果,它可能会也可能不会在审阅工具中为内容创建审阅。Based on the workflow results, it may or may not create a review for the content in the Review tool. 审阅和工作流可以通过其各自的 API 创建和配置,而作业 API 允许获取整个流程的详细报告(可以将其发送到指定的回调终结点)。While both reviews and workflows can be created and configured with their respective APIs, the job API allows you to obtain a detailed report of the entire process (which can be sent to a specified callback endpoint).

若要开始使用作业,请参阅 REST API 指南See the REST API guide to get started using jobs.

后续步骤Next steps