您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

内容审核评审、工作流和作业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.

WorkflowsWorkflows

工作流是一种基于云的自定义内容筛选器。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.

作业(Job)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