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
@@ -24,28 +24,27 @@ See the list of [languages supported](../language-support.md) when using Transla
24
24
25
25
> [!IMPORTANT]
26
26
>
27
-
> * Translator container is in gated preview and to use it you must submit an online request, and have it approved. See [Request approval to run container](#request-approval-to-run-container) below for more information.
28
-
> * Translator container supports limited features compared to the cloud offerings. *See*[**Container translate methods**](translator-container-supported-parameters.md) for more details.
27
+
> * Translator container is in gated preview and to use it you must submit an online request, and have it approved. For more information, _see_[Request approval to run container](#request-approval-to-run-container) below.
28
+
> * Translator container supports limited features compared to the cloud offerings. Form more information, _see_[**Container translate methods**](translator-container-supported-parameters.md).
29
29
30
30
<!-- markdownlint-disable MD033 -->
31
31
32
32
## Prerequisites
33
33
34
34
To get started, you'll need an active [**Azure account**](https://azure.microsoft.com/free/cognitive-services/). If you don't have one, you can [**create a free account**](https://azure.microsoft.com/free/).
35
35
36
-
You'll also need the following:
36
+
You'll also need to have:
37
37
38
38
| Required | Purpose |
39
39
|--|--|
40
40
| Familiarity with Docker | <ul><li>You should have a basic understanding of Docker concepts, like registries, repositories, containers, and container images, as well as knowledge of basic `docker`[terminology and commands](/dotnet/architecture/microservices/container-docker-introduction/docker-terminology).</li></ul> |
41
41
| Docker Engine | <ul><li>You need the Docker Engine installed on a [host computer](#host-computer). Docker provides packages that configure the Docker environment on [macOS](https://docs.docker.com/docker-for-mac/), [Windows](https://docs.docker.com/docker-for-windows/), and [Linux](https://docs.docker.com/engine/installation/#supported-platforms). For a primer on Docker and container basics, see the [Docker overview](https://docs.docker.com/engine/docker-overview/).</li><li> Docker must be configured to allow the containers to connect with and send billing data to Azure. </li><li> On **Windows**, Docker must also be configured to support **Linux** containers.</li></ul> |
42
42
| Translator resource | <ul><li>An Azure [Translator](https://portal.azure.com/#create/Microsoft.CognitiveServicesTextTranslation) resource with region other than 'global', associated API key and endpoint URI. Both values are required to start the container and can be found on the resource overview page.</li></ul>|
43
-
|||
44
43
45
44
|Optional|Purpose|
46
45
|---------|----------|
47
-
|Azure CLI (command-line interface) |<ul><li> The [Azure CLI](/cli/azure/install-azure-cli) enables you to use a set of online commands to create and manage Azure resources. It is available to install in Windows, macOS, and Linux environments and can be run in a Docker container and Azure Cloud Shell.</li></ul> |
48
-
|||
46
+
|Azure CLI (command-line interface) |<ul><li> The [Azure CLI](/cli/azure/install-azure-cli) enables you to use a set of online commands to create and manage Azure resources. It's available to install in Windows, macOS, and Linux environments and can be run in a Docker container and Azure Cloud Shell.</li></ul> |
47
+
49
48
50
49
## Required elements
51
50
@@ -65,14 +64,17 @@ All Cognitive Services containers require three primary elements:
65
64
66
65
## Container requirements and recommendations
67
66
68
-
The following table describes the minimum and recommended specifications for Translator containers. At least 2 gigabytes (GB) of memory are required and each CPU must be at least 2.6 gigahertz (GHz) or faster. and memory, in gigabytes (GB), to allocate for each Translator. The following table describes the minimum and recommended allocation of resources for each Translator container.
67
+
The following table describes the minimum and recommended CPU cores and memoryto allocate for the Translator container.
69
68
70
69
| Container | Minimum |Recommended | Language Pair |
For every language pair, it's recommended to have 2 GB of memory. By default, the Translator offline container has four language pairs. The core and memory correspond to the `--cpus` and `--memory` settings, which are used as part of the `docker run` command.
73
+
* Each core must be at least 2.6 gigahertz (GHz) or faster.
74
+
75
+
* For every language pair, it's recommended to have 2 GB of memory. By default, the Translator offline container has four language pairs.
76
+
77
+
* The core and memory correspond to the `--cpus` and `--memory` settings, which are used as part of the `docker run` command.
76
78
77
79
> [!NOTE]
78
80
>
@@ -124,7 +126,7 @@ You can have this container and a different Azure Cognitive Services container r
124
126
125
127
## Query the container's Translator endpoint
126
128
127
-
The container provides a REST-based Translator endpoint API. Here is an example request:
129
+
The container provides a REST-based Translator endpoint API. Here's an example request:
128
130
129
131
```curl
130
132
curl -X POST "http://localhost:5000/translate?api-version=3.0&from=en&to=zh-HANS"
@@ -217,7 +219,7 @@ print(json.dumps(
217
219
218
220
Launch Visual Studio, and create a new console application. Edit the `*.csproj` file to add the `<LangVersion>7.1</LangVersion>` node—specifies C# 7.1. Add the [Newtoonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) NuGet package, version 11.0.2.
219
221
220
-
In the `Program.cs` replace all the existing code with the following:
222
+
In the `Program.cs` replace all the existing code with the following script:
0 commit comments