Skip to content

Commit bc1f1c2

Browse files
authored
Merge pull request #1363 from cdpark/refresh-oct-patfarley-3
Feature 322546: Q&M: Freshness - AI Services & Search 180d target - Oct sprint - patfarley-3
2 parents d530329 + c09952b commit bc1f1c2

File tree

6 files changed

+82
-83
lines changed

6 files changed

+82
-83
lines changed

articles/ai-services/content-moderator/text-moderation-api.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
---
22
title: Text Moderation - Content Moderator
33
titleSuffix: Azure AI services
4-
description: Use text moderation for possible unwanted text, personal data, and custom lists of terms.
4+
description: Use text moderation to detect potentially unwanted text, personal data, and custom lists of terms.
55
#services: cognitive-services
66
author: PatrickFarley
77
manager: nitinme
88
ms.service: azure-ai-content-moderator
99
ms.topic: conceptual
10-
ms.date: 01/18/2024
10+
ms.date: 11/06/2024
1111
ms.author: pafarley
1212

1313
---
1414

15-
# Learn text moderation concepts
15+
# Text moderation concepts
1616

17-
Use Content Moderator's text moderation models to analyze text content, such as chat rooms, discussion boards, chatbots, e-commerce catalogs, and documents.
17+
[!INCLUDE [deprecation notice](includes/tool-deprecation.md)]
18+
19+
You can use Azure Content Moderator's text moderation models to analyze text content, such as chat rooms, discussion boards, chatbots, e-commerce catalogs, and documents.
1820

1921
The service response includes the following information:
2022

2123
- Profanity: term-based matching with built-in list of profane terms in various languages
2224
- Classification: machine-assisted classification into three categories
2325
- Personal data
24-
- Auto-corrected text
26+
- Autocorrected text
2527
- Original text
2628
- Language
2729

@@ -40,13 +42,13 @@ If the API detects any profane terms in any of the [supported languages](./langu
4042
```
4143

4244
> [!NOTE]
43-
> For the **language** parameter, assign `eng` or leave it empty to see the machine-assisted **classification** response (preview feature). **This feature supports English only**.
45+
> For the `language` parameter, assign `eng` or leave it empty to see the machine-assisted *classification* response (preview feature). **This feature supports English only**.
4446
>
45-
> For **profanity terms** detection, use the [ISO 639-3 code](http://www-01.sil.org/iso639-3/codes.asp) of the supported languages listed in this article, or leave it empty.
47+
> For *profanity terms* detection, use the [ISO 639-3 code](http://www-01.sil.org/iso639-3/codes.asp) of the supported languages listed in this article, or leave it empty.
4648

4749
## Classification
4850

49-
Content Moderator's machine-assisted **text classification feature** supports **English only**, and helps detect potentially undesired content. The flagged content may be assessed as inappropriate depending on context. It conveys the likelihood of each category. The feature uses a trained model to identify possible abusive, derogatory or discriminatory language. This includes slang, abbreviated words, offensive, and intentionally misspelled words.
51+
Content Moderator's machine-assisted *text classification feature* supports *English only*, and helps detect potentially undesired content. The flagged content might be assessed as inappropriate depending on context. It conveys the likelihood of each category. The feature uses a trained model to identify possible abusive, derogatory, or discriminatory language. This includes slang, abbreviated words, offensive, and intentionally misspelled words.
5052

5153
The following extract in the JSON extract shows an example output:
5254

@@ -67,10 +69,10 @@ The following extract in the JSON extract shows an example output:
6769

6870
### Explanation
6971

70-
- `Category1` refers to potential presence of language that may be considered sexually explicit or adult in certain situations.
71-
- `Category2` refers to potential presence of language that may be considered sexually suggestive or mature in certain situations.
72-
- `Category3` refers to potential presence of language that may be considered offensive in certain situations.
73-
- `Score` is between 0 and 1. The higher the score, the higher the model is predicting that the category may be applicable. This feature relies on a statistical model rather than manually coded outcomes. We recommend testing with your own content to determine how each category aligns to your requirements.
72+
- `Category1` refers to the potential presence of language that might be considered sexually explicit or adult in certain situations.
73+
- `Category2` refers to the potential presence of language that might be considered sexually suggestive or mature in certain situations.
74+
- `Category3` refers to the potential presence of language that might be considered offensive in certain situations.
75+
- `Score` is between 0 and 1. The higher the score, the higher the probability that the category might be applicable. This feature relies on a statistical model rather than manually coded outcomes. We recommend testing with your own content to determine how each category aligns to your requirements.
7476
- `ReviewRecommended` is either true or false depending on the internal score thresholds. Customers should assess whether to use this value or decide on custom thresholds based on their content policies.
7577

7678
## Personal data
@@ -120,24 +122,24 @@ The following example shows a sample response:
120122
}
121123
```
122124

123-
## Auto-correction
125+
## Autocorrection
124126

125-
The text moderation response can optionally return the text with basic auto-correction applied.
127+
The text moderation response can optionally return the text with basic autocorrection applied.
126128

127129
For example, the following input text has a misspelling.
128130

129131
> The quick brown fox jumps over the lazzy dog.
130132
131-
If you specify auto-correction, the response contains the corrected version of the text:
133+
If you specify autocorrection, the response contains the corrected version of the text:
132134

133135
> The quick brown fox jumps over the lazy dog.
134136
135-
## Creating and managing your custom lists of terms
137+
## Create and manage your custom lists of terms
136138

137-
While the default, global list of terms works great for most cases, you may want to screen against terms that are specific to your business needs. For example, you may want to filter out any competitive brand names from posts by users.
139+
While the default, global list of terms works great for most cases, you might want to screen against terms that are specific to your business needs. For example, you might want to filter out any competitive brand names from posts by users.
138140

139141
> [!NOTE]
140-
> There is a maximum limit of **5 term lists** with each list to **not exceed 10,000 terms**.
142+
> There is a maximum limit of *five term lists* with each list to *not exceed 10,000 terms*.
141143
>
142144
143145
The following example shows the matching List ID:
@@ -152,8 +154,8 @@ The following example shows the matching List ID:
152154
}
153155
```
154156

155-
The Content Moderator provides a [Term List API](/rest/api/cognitiveservices/contentmoderator/list-management-term-lists) with operations for managing custom term lists. Check out the [Term Lists .NET quickstart](term-lists-quickstart-dotnet.md) if you are familiar with Visual Studio and C#.
157+
The Content Moderator provides a [Term List API](/rest/api/cognitiveservices/contentmoderator/list-management-term-lists) with operations for managing custom term lists. Check out the [Term Lists .NET quickstart](term-lists-quickstart-dotnet.md) if you're familiar with Visual Studio and C#.
156158

157-
## Next steps
159+
## Related content
158160

159-
Test out the APIs with the [Quickstart](client-libraries.md).
161+
- [Quickstart: Use the Content Moderator client library](client-libraries.md)
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,80 @@
11
---
22
title: Export your model to mobile - Custom Vision Service
33
titleSuffix: Azure AI services
4-
description: This article will show you how to export your model for use in creating mobile applications or run locally for real-time classification.
4+
description: Learn how to export your model for use in creating mobile applications or to run locally for real-time classification.
55
#services: cognitive-services
66
author: PatrickFarley
77
manager: nitinme
88

99
ms.service: azure-ai-custom-vision
1010
ms.topic: how-to
11-
ms.date: 01/21/2024
11+
ms.date: 11/05/2024
1212
ms.author: pafarley
1313
---
1414

1515
# Export your model for use with mobile devices
1616

17-
Custom Vision Service lets you export your classifiers to run offline. You can embed your exported classifier into an application and run it locally on a device for real-time classification.
17+
Azure AI Custom Vision Service lets you export your classifiers to run offline. You can embed your exported classifier into an application and run it locally on a device for real-time classification.
1818

1919
## Export options
2020

2121
Custom Vision Service supports the following exports:
2222

23-
* **TensorFlow** for **Android**.
24-
* **TensorFlow.js** for JavaScript frameworks like React, Angular, and Vue. This will run on both **Android** and **iOS** devices.
25-
* **CoreML** for **iOS11**.
26-
* **ONNX** for **Windows ML**, **Android**, and **iOS**.
27-
* **[Vision AI Developer Kit](https://azure.github.io/Vision-AI-DevKit-Pages/)**.
28-
* A **Docker container** for Windows, Linux, or ARM architecture. The container includes a TensorFlow model and service code to use the Custom Vision API.
23+
* **TensorFlow** for **Android**
24+
* **TensorFlow.js** for JavaScript frameworks like React, Angular, and Vue. This runs on both **Android** and **iOS** devices
25+
* **CoreML** for **iOS 11 and later**
26+
* **ONNX** for **Windows ML**, **Android**, and **iOS**
27+
* **[Vision AI Developer Kit](https://azure.github.io/Vision-AI-DevKit-Pages/)**
28+
* A **Docker container** for Windows, Linux, or ARM architecture. The container includes a TensorFlow model and service code to use the Custom Vision API
2929

3030
> [!IMPORTANT]
31-
> Custom Vision Service only exports projects with **compact** domains. The models generated by compact domains are optimized for the constraints of real-time classification on mobile devices. Classifiers built with a compact domain may be slightly less accurate than a standard domain with the same amount of training data.
31+
> Custom Vision Service only exports projects with *compact* domains. The models generated by compact domains are optimized for the constraints of real-time classification on mobile devices. Classifiers built with a compact domain might be slightly less accurate than a standard domain with the same amount of training data.
3232
>
33-
> For information on improving your classifiers, see the [Improving your classifier](getting-started-improving-your-classifier.md) document.
33+
> For information on improving your classifiers, see [Improving your classifier](getting-started-improving-your-classifier.md).
3434
3535
## Convert to a compact domain
3636

3737
> [!NOTE]
38-
> The steps in this section only apply if you have an existing model that is not set to compact domain.
38+
> The steps in this section only apply if you have an existing model that isn't set to compact domain.
3939
40-
To convert the domain of an existing model, take the following steps:
40+
To convert the domain of an existing model, follow these steps:
4141

42-
1. On the [Custom vision website](https://customvision.ai), select the **Home** icon to view a list of your projects.
42+
1. Go to the [Custom Vision website](https://customvision.ai), then sign in to view a list of your projects.
4343

44-
![Image of the home icon and projects list](./media/export-your-model/projects-list.png)
44+
:::image type="content" source="media/export-your-model/projects-list.png" alt-text="Screenshot that shows a list of projects.":::
4545

4646
1. Select a project, and then select the **Gear** icon in the upper right of the page.
4747

48-
![Image of the gear icon](./media/export-your-model/gear-icon.png)
48+
:::image type="content" source="media/export-your-model/gear-icon.png" alt-text="Screenshot that shows the gear icon.":::
4949

5050
1. In the **Domains** section, select one of the **compact** domains. Select **Save Changes** to save the changes.
5151

5252
> [!NOTE]
5353
> For Vision AI Dev Kit, the project must be created with the **General (Compact)** domain, and you must specify the **Vision AI Dev Kit** option under the **Export Capabilities** section.
5454
55-
![Image of domains selection](./media/export-your-model/domains.png)
55+
:::image type="content" source="media/export-your-model/domains.png" alt-text="Screenshot that shows the Domains selection.":::
5656

5757
1. From the top of the page, select **Train** to retrain using the new domain.
5858

5959
## Export your model
6060

6161
To export the model after retraining, use the following steps:
6262

63-
1. Go to the **Performance** tab and select **Export**.
63+
1. Go to the **Performance** tab and select **Export**.
6464

65-
![Image of the export icon](./media/export-your-model/export.png)
65+
:::image type="content" source="media/export-your-model/export.png" alt-text="Screenshot that shows the export icon.":::
6666

6767
> [!TIP]
68-
> If the **Export** entry is not available, then the selected iteration does not use a compact domain. Use the **Iterations** section of this page to select an iteration that uses a compact domain, and then select **Export**.
68+
> If the **Export** entry isn't available, then the selected iteration doesn't use a compact domain. Use the **Iterations** section of this page to select an iteration that uses a compact domain, and then select **Export**.
6969
7070
1. Select your desired export format, and then select **Export** to download the model.
7171

72-
## Next steps
72+
## Related content
7373

74-
Integrate your exported model into an application by exploring one of the following articles or samples:
74+
To integrate your exported model into an application, explore one of the following articles or samples:
7575

76-
* [Use your TensorFlow model with Python](export-model-python.md)
76+
* [Run a TensorFlow model in Python](export-model-python.md)
7777
* [Use your ONNX model with Windows Machine Learning](custom-vision-onnx-windows-ml.md)
78-
* See the sample for [CoreML model in an iOS application](https://go.microsoft.com/fwlink/?linkid=857726) for real-time image classification with Swift.
79-
* See the sample for [TensorFlow model in an Android application](https://github.com/Azure-Samples/cognitive-services-android-customvision-sample) for real-time image classification on Android.
80-
* See the sample for [CoreML model with Xamarin](https://github.com/xamarin/ios-samples/tree/master/ios11/CoreMLAzureModel) for real-time image classification in a Xamarin iOS app.
78+
* See the Swift sample for [CoreML model in an iOS application](https://go.microsoft.com/fwlink/?linkid=857726)
79+
* See the Android sample for [TensorFlow model in an Android app](https://github.com/Azure-Samples/cognitive-services-android-customvision-sample)
80+
* See the Xamarin iOS sample for [CoreML model with Xamarin](https://github.com/xamarin/ios-samples/tree/master/ios11/CoreMLAzureModel)

0 commit comments

Comments
 (0)