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
# Quickstart: Azure AI Translator client libraries (preview)
25
-
26
-
> [!IMPORTANT]
27
-
>
28
-
> * The Translator text SDKs are currently available in public preview. Features, approaches and processes may change, prior to General Availability (GA), based on user feedback.
24
+
# Quickstart: Azure AI Translator text client libraries
29
25
30
26
In this quickstart, get started using the Translator service to [translate text](reference/v3-0-translate.md) using a programming language of your choice. For this project, we recommend using the free pricing tier (F0), while you're learning the technology, and later upgrading to a paid tier for production.
Copy file name to clipboardExpand all lines: articles/ai-services/translator/reference/v3-0-translate.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ manager: nitinme
8
8
9
9
ms.service: azure-ai-translator
10
10
ms.topic: reference
11
-
ms.date: 06/06/2024
11
+
ms.date: 09/26/2024
12
12
ms.author: lajanuar
13
13
---
14
14
@@ -266,11 +266,14 @@ Normally, the Translator service retains profanity that is present in the source
266
266
If you want to avoid getting profanity in the translation, regardless of the presence of profanity in the source text, you can use the profanity filtering option. The option allows you to choose whether you want to see profanity deleted, marked with appropriate tags (giving you the option to add your own post-processing), or with no action taken. The accepted values of `ProfanityAction` are `Deleted`, `Marked`, and `NoAction` (default).
267
267
268
268
269
-
| ProfanityAction | Action |
270
-
| --- | --- |
271
-
|`NoAction`| NoAction is the default behavior. Profanity passes from source to target. <br><br>**Example Source (Japanese)**: 彼はジャッカスです。 <br>**Example Translation (English)**: H​e's a jack---. |
272
-
|`Deleted`| Profane words are removed from the output without replacement. <br> <br>**Example Source (Japanese)**: 彼はジャッカスです。 <br>**Example Translation (English)**: H​e's a**|
273
-
|`Marked`| A marker replaces the marked word in the output. The marker depends on the `ProfanityMarker` parameter. <br> <br>For `ProfanityMarker=Asterisk`, profane words are replaced with `***`: <br>**Example Source (Japanese)**: 彼はジャッカスです。 <br>**Example Translation (English)**: H​e's a \\*\\*\\*. <br> <br>For `ProfanityMarker=Tag`, profane words are surrounded by XML tags <profanity> and </profanity>: <br>**Example Source (Japanese)**: 彼はジャッカスです。 <br>**Example Translation (English)**: H​e's a <profanity>jack---</profanity>. |
269
+
| Accepted ProfanityAction value | ProfanityMarker value | Action | Example: Source - Spanish| Example: Target - English|
270
+
|:--|:--|:--|:--|:--|
271
+
| NoAction|| Default. Same as not setting the option. Profanity passes from source to target. |`Que coche de`\<insert-profane-word> | What a \<insert-profane-word> car |
272
+
| Marked | Asterisk | Asterisks replace profane words (default). |`Que coche de`\<insert-profane-word> | What a *** car |
273
+
| Marked | Tag | Profane words are surrounded by XML tags \<profanity\>...\</profanity>. |`Que coche de`\<insert-profane-word> | What a \<profanity> \<insert-profane-word> \</profanity> car |
274
+
| Deleted || Profane words are removed from the output without replacement. |`Que coche de`\<insert-profane-word> | What a car |
275
+
276
+
In the above examples, **\<insert-profane-word>** is a placeholder for profane words.
Copy file name to clipboardExpand all lines: articles/ai-services/translator/text-sdk-overview.md
+68-10Lines changed: 68 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: nitinme
7
7
ms.service: azure-ai-translator
8
8
ms.custom: devx-track-python
9
9
ms.topic: conceptual
10
-
ms.date: 07/08/2024
10
+
ms.date: 09/26/2024
11
11
ms.author: lajanuar
12
12
recommendations: false
13
13
---
@@ -17,11 +17,7 @@ recommendations: false
17
17
<!-- markdownlint-disable MD001 -->
18
18
<!-- markdownlint-disable MD051 -->
19
19
20
-
# Azure Text Translation SDK (preview)
21
-
22
-
> [!IMPORTANT]
23
-
>
24
-
> * The Translator text SDKs are currently available in public preview. Features, approaches and processes may change, prior to General Availability (GA), based on user feedback.
20
+
# Azure Text Translation SDK
25
21
26
22
Azure Text Translation is a cloud-based REST API feature of the Azure AI Translator service. The Text Translation API enables quick and accurate source-to-target text translations in real time. The Text Translation software development kit (SDK) is a set of libraries and tools that enable you to easily integrate Text Translation REST API capabilities into your applications. Text Translation SDK is available across programming platforms in C#/.NET, Java, JavaScript, and Python.
27
23
@@ -31,17 +27,79 @@ Text Translation SDK supports the programming languages and platforms:
31
27
32
28
| Language → SDK version | Package|Client library| Supported API version|
|[.NET/C# → 1.0.0-beta.1](https://azuresdkdocs.blob.core.windows.net/$web/dotnet/Azure.AI.Translation.Text/1.0.0-beta.1/index.html)|[NuGet](https://www.nuget.org/packages/Azure.AI.Translation.Text/1.0.0-beta.1)|[Azure SDK for .NET](/dotnet/api/overview/azure/ai.translation.text-readme?view=azure-dotnet-preview&preserve-view=true)|Translator v3.0|
35
-
|[Java✱ → 1.0.0-beta.1](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-ai-translation-text/1.0.0-beta.1/index.html)|[Maven repository](https://mvnrepository.com/artifact/com.azure/azure-ai-translation-text/1.0.0-beta.1)|[Azure SDK for Java](/java/api/overview/azure/ai-translation-text-readme?view=azure-java-preview&preserve-view=true)|Translator v3.0|
36
-
|[JavaScript → 1.0.0-beta.1](https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-cognitiveservices-translatortext/1.0.0/index.html)|[npm](https://www.npmjs.com/package/@azure-rest/ai-translation-text/v/1.0.0-beta.1)|[Azure SDK for JavaScript](/javascript/api/overview/azure/text-translation?view=azure-node-preview&preserve-view=true)|Translator v3.0 |
37
-
|**Python → 1.0.0b1**|[PyPi](https://pypi.org/project/azure-ai-translation-text/1.0.0b1/)|[Azure SDK for Python](/python/api/azure-ai-translation-text/azure.ai.translation.text?view=azure-python-preview&preserve-view=true)|Translator v3.0|
30
+
|[.NET/C# → 1.0.0](https://azuresdkdocs.blob.core.windows.net/$web/dotnet/Azure.AI.Translation.Text/1.0.0/index.html)|[NuGet](https://www.nuget.org/packages/Azure.AI.Translation.Text/1.0.0)|[Azure SDK for .NET](/dotnet/api/overview/azure/ai.translation.text-readme?view=azure-dotnet&preserve-view=true)|Translator v3.0|
31
+
|[Java✱ → 1.0.0](https://azuresdkdocs.blob.core.windows.net/$web/java/azure-ai-translation-text/1.0.0/index.html)|[Maven repository](https://mvnrepository.com/artifact/com.azure/azure-ai-translation-text/1.0.0)|[Azure SDK for Java](/java/api/overview/azure/ai-translation-text-readme?view=azure-java-stable&preserve-view=true)|Translator v3.0|
32
+
|[JavaScript → 1.0.0](https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-cognitiveservices-translatortext/1.0.0/index.html)|[npm](https://www.npmjs.com/package/@azure-rest/ai-translation-text/v/1.0.0)|[Azure SDK for JavaScript](/javascript/api/overview/azure/text-translation?view=azure-node-preview&preserve-view=true)|Translator v3.0 |
33
+
|[Python → 1.0.1](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-ai-translation-text/1.0.1/index.html)|[PyPi](https://pypi.org/project/azure-ai-translation-text/1.0.1/)|[Azure SDK for Python](/python/api/overview/azure/ai-translation-text-readme?view=azure-python&preserve-view=true)|Translator v3.0|
38
34
39
35
✱ The Azure Text Translation SDK for Java is tested and supported on Windows, Linux, and macOS platforms. It isn't tested on other platforms and doesn't support Android deployments.
40
36
41
37
## Changelog and release history
42
38
43
39
This section provides a version-based description of Text Translation feature and capability releases, changes, updates, and enhancements.
0 commit comments