Skip to content

Commit c02b997

Browse files
committed
Refresh articles
1 parent 0f17eac commit c02b997

File tree

6 files changed

+76
-79
lines changed

6 files changed

+76
-79
lines changed

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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
---
@@ -21,7 +21,7 @@ The service response includes the following information:
2121
- Profanity: term-based matching with built-in list of profane terms in various languages
2222
- Classification: machine-assisted classification into three categories
2323
- Personal data
24-
- Auto-corrected text
24+
- Autocorrected text
2525
- Original text
2626
- Language
2727

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

4242
> [!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**.
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**.
4444
>
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.
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.
4646

4747
## Classification
4848

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.
49+
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.
5050

5151
The following extract in the JSON extract shows an example output:
5252

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

6868
### Explanation
6969

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.
70+
- `Category1` refers to the potential presence of language that might be considered sexually explicit or adult in certain situations.
71+
- `Category2` refers to the potential presence of language that might be considered sexually suggestive or mature in certain situations.
72+
- `Category3` refers to the potential presence of language that might be considered offensive in certain situations.
73+
- `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.
7474
- `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.
7575

7676
## Personal data
@@ -120,24 +120,24 @@ The following example shows a sample response:
120120
}
121121
```
122122

123-
## Auto-correction
123+
## Autocorrection
124124

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

127127
For example, the following input text has a misspelling.
128128

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

133133
> The quick brown fox jumps over the lazy dog.
134134
135-
## Creating and managing your custom lists of terms
135+
## Create and manage your custom lists of terms
136136

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.
137+
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.
138138

139139
> [!NOTE]
140-
> There is a maximum limit of **5 term lists** with each list to **not exceed 10,000 terms**.
140+
> There is a maximum limit of *five term lists* with each list to *not exceed 10,000 terms*.
141141
>
142142
143143
The following example shows the matching List ID:
@@ -152,8 +152,8 @@ The following example shows the matching List ID:
152152
}
153153
```
154154

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#.
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're familiar with Visual Studio and C#.
156156

157-
## Next steps
157+
## Related content
158158

159-
Test out the APIs with the [Quickstart](client-libraries.md).
159+
- [Quickstart: Use the Content Moderator client library](client-libraries.md)
Lines changed: 24 additions & 24 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
4040
To convert the domain of an existing model, take the following 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 isng 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

7474
Integrate your exported model into an application by exploring 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)