You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Content-Moderator/includes/quickstarts/content-moderator-client-library-csharp.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: "Quickstart: Content Moderator client library for .NET"
2
+
title: "Content Moderator .NET client library quickstart"
3
3
titleSuffix: Azure Cognitive Services
4
4
description: Get started with the Content Moderator client library for .NET with this quickstart.
5
5
services: cognitive-services
@@ -12,8 +12,6 @@ ms.date: 01/27/2020
12
12
ms.author: pafarley
13
13
---
14
14
15
-
# Quickstart: Content Moderator client library for .NET
16
-
17
15
Get started with the Content Moderator client library for .NET. Follow these steps to install the package and try out the example code for basic tasks. Content Moderator is a cognitive service that checks text, image, and video content for material that is potentially offensive, risky, or otherwise undesirable. When such material is found, the service applies appropriate labels (flags) to the content. Your app can then handle flagged content to comply with regulations or maintain the intended environment for users.
18
16
19
17
Use the Content Moderator client library for .NET to:
@@ -89,7 +87,7 @@ If you're using the Visual Studio IDE, the client library is available as a down
89
87
90
88
## Object model
91
89
92
-
The following classes handle some of the major features of the Content Moderator .NET SDK.
90
+
The following classes handle some of the major features of the Content Moderator .NET client library.
93
91
94
92
|Name|Description|
95
93
|---|---|
@@ -175,7 +173,7 @@ The following method iterates through the image URLs in a text file, creates an
175
173
176
174
#### Analyze content
177
175
178
-
For more information on the image attributes that Content Moderator screens for, see the [Image moderation concepts](./image-moderation-api.md) guide.
176
+
For more information on the image attributes that Content Moderator screens for, see the [Image moderation concepts](../../image-moderation-api.md) guide.
@@ -185,7 +183,7 @@ For more information on the image attributes that Content Moderator screens for,
185
183
186
184
## Create a review
187
185
188
-
You can use the Content Moderator .NET SDK to feed content into the [Review tool](https://contentmoderator.cognitive.microsoft.com) so that human moderators can review it. To learn more about the Review tool, see the [Review tool conceptual guide](./review-tool-user-guide/human-in-the-loop.md).
186
+
You can use the Content Moderator .NET client library to feed content into the [Review tool](https://contentmoderator.cognitive.microsoft.com) so that human moderators can review it. To learn more about the Review tool, see the [Review tool conceptual guide](../../review-tool-user-guide/human-in-the-loop.md).
189
187
190
188
The method in this section uses the [Reviews](https://docs.microsoft.com/dotnet/api/microsoft.azure.cognitiveservices.contentmoderator.reviews?view=azure-dotnet) class to create a review, retrieve its ID, and check its details after receiving human input through the Review tool's web portal. It logs all of this information in an output text file. Call the method from your `Main` method:
191
189
@@ -265,8 +263,8 @@ dotnet run
265
263
266
264
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
*[What is Azure Content Moderator?](./overview.md)
276
+
*[What is Azure Content Moderator?](../../overview.md)
279
277
* The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/dotnet/ContentModerator/Program.cs).
Copy file name to clipboardExpand all lines: articles/cognitive-services/Content-Moderator/includes/quickstarts/content-moderator-client-library-java.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,17 @@
1
1
---
2
-
title: "Quickstart: Content Moderator client library for Java"
2
+
title: "Content Moderator Java client library quickstart"
3
3
titleSuffix: Azure Cognitive Services
4
4
description: In this quickstart, learn how to get started with the Azure Cognitive Services Content Moderator client library for Java.
5
5
services: cognitive-services
6
6
author: PatrickFarley
7
7
manager: nitinme
8
8
ms.service: cognitive-services
9
9
ms.subservice: content-moderator
10
-
ms.topic: quickstart
10
+
ms.topic: include
11
11
ms.date: 01/27/2020
12
12
ms.author: pafarley
13
13
---
14
14
15
-
# Quickstart: Content Moderator client library for Java
16
-
17
15
Get started with the Content Moderator client library for Java. Follow these steps to install the package and try out the example code for basic tasks. Content Moderator is a cognitive service that checks text, image, and video content for material that is potentially offensive, risky, or otherwise undesirable. When such material is found, the service applies appropriate labels (flags) to the content. Your app can then handle flagged content in order to comply with regulations or maintain the intended environment for users.
18
16
19
17
Use the Content Moderator client library for Java to:
@@ -54,7 +52,7 @@ gradle init --type basic
54
52
55
53
When prompted to choose a build script DSL, select **Kotlin**.
56
54
57
-
Find *build.gradle.kts* and open it with your preferred IDE or text editor. Then copy in the following build configuration. This configuration defines the project as a Java application whose entry point is the class **ContentModeratorQuickstart**. It imports the Content Moderator SDK as well as the Gson sdk for JSON serialization.
55
+
Find *build.gradle.kts* and open it with your preferred IDE or text editor. Then copy in the following build configuration. This configuration defines the project as a Java application whose entry point is the class **ContentModeratorQuickstart**. It imports the Content Moderator client library as well as the Gson sdk for JSON serialization.
58
56
59
57
```kotlin
60
58
plugins {
@@ -88,7 +86,7 @@ Then create a file named *ContentModeratorQuickstart.java* in the new folder. Op
88
86
89
87
## Object model
90
88
91
-
The following classes handle some of the major features of the Content Moderator Java SDK.
89
+
The following classes handle some of the major features of the Content Moderator Java client library.
92
90
93
91
|Name|Description|
94
92
|---|---|
@@ -189,8 +187,8 @@ Then navigate to the *src/main/resources/ModerationOutput.json* file and view th
189
187
190
188
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
*[What is Azure Content Moderator?](./overview.md)
200
+
*[What is Azure Content Moderator?](../../overview.md)
203
201
* The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/java/ContentModerator/src/main/java/ContentModeratorQuickstart.java).
Copy file name to clipboardExpand all lines: articles/cognitive-services/Content-Moderator/includes/quickstarts/content-moderator-client-library-python.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,17 @@
1
1
---
2
-
title: "Quickstart: Content Moderator client library for Python"
2
+
title: "Content Moderator Python client library quickstart"
3
3
titleSuffix: Azure Cognitive Services
4
4
description: In this quickstart, learn how to get started with the Azure Cognitive Services Content Moderator client library for Python.
5
5
services: cognitive-services
6
6
author: PatrickFarley
7
7
manager: nitinme
8
8
ms.service: cognitive-services
9
9
ms.subservice: content-moderator
10
-
ms.topic: quickstart
10
+
ms.topic: include
11
11
ms.date: 01/27/2020
12
12
ms.author: pafarley
13
13
---
14
14
15
-
# Quickstart: Content Moderator client library for Python
16
-
17
15
Get started with the Content Moderator client library for Python. Follow these steps to install the package and try out the example code for basic tasks. Content Moderator is a cognitive service that checks text, image, and video content for material that is potentially offensive, risky, or otherwise undesirable. When such material is found, the service applies appropriate labels (flags) to the content. Your app can then handle flagged content in order to comply with regulations or maintain the intended environment for users.
18
16
19
17
Use the Content Moderator client library for Python to:
The following classes handle some of the major features of the Content Moderator Python SDK.
66
+
The following classes handle some of the major features of the Content Moderator Python client library.
69
67
70
68
|Name|Description|
71
69
|---|---|
@@ -88,7 +86,7 @@ These code snippets show you how to do the following tasks with the Content Mode
88
86
## Authenticate the client
89
87
90
88
> [!NOTE]
91
-
> This quickstart assumes you've [created environment variables](../cognitive-services-apis-create-account.md#configure-an-environment-variable-for-authentication) for your Content Moderator key and endpoint.
89
+
> This quickstart assumes you've [created environment variables](../../../cognitive-services-apis-create-account.md#configure-an-environment-variable-for-authentication) for your Content Moderator key and endpoint.
92
90
93
91
Instantiate a client with your endpoint and key. Create a [CognitiveServicesCredentials](https://docs.microsoft.com/python/api/msrest/msrest.authentication.cognitiveservicescredentials?view=azure-python) object with your key, and use it with your endpoint to create an [ContentModeratorClient](https://docs.microsoft.com/python/api/azure-cognitiveservices-vision-contentmoderator/azure.cognitiveservices.vision.contentmoderator.content_moderator_client.contentmoderatorclient?view=azure-python) object.
94
92
@@ -197,7 +195,7 @@ Then add the following code to iterate through your images. The rest of the code
197
195
198
196
### Check for adult/racy content
199
197
200
-
The following code checks the image at the given URL for adult or racy content and prints results to the console. See the [Image moderation concepts](./image-moderation-api.md) guide for information on what these terms mean.
198
+
The following code checks the image at the given URL for adult or racy content and prints results to the console. See the [Image moderation concepts](../../image-moderation-api.md) guide for information on what these terms mean.
@@ -291,7 +289,7 @@ Use the following code to delete a given image list.
291
289
292
290
## Create a review
293
291
294
-
You can use the Content Moderator Python SDK to feed content into the [Review tool](https://contentmoderator.cognitive.microsoft.com) so that human moderators can review it. To learn more about the Review tool, see the [Review tool conceptual guide](./review-tool-user-guide/human-in-the-loop.md).
292
+
You can use the Content Moderator Python client library to feed content into the [Review tool](https://contentmoderator.cognitive.microsoft.com) so that human moderators can review it. To learn more about the Review tool, see the [Review tool conceptual guide](../../review-tool-user-guide/human-in-the-loop.md).
295
293
296
294
The following code uses the [ReviewsOperations](https://docs.microsoft.com/python/api/azure-cognitiveservices-vision-contentmoderator/azure.cognitiveservices.vision.contentmoderator.operations.reviewsoperations?view=azure-python) class to create a review, retrieve its ID, and check its details after receiving human input through the Review tool's web portal.
297
295
@@ -340,8 +338,8 @@ python quickstart-file.py
340
338
341
339
If you want to clean up and remove a Cognitive Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
*[What is Azure Content Moderator?](./overview.md)
351
+
*[What is Azure Content Moderator?](../../overview.md)
354
352
* The source code for this sample can be found on [GitHub](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/python/ContentModerator/ContentModeratorQuickstart.py).
0 commit comments