您现在访问的是微软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.

工作流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