Skip to content

Commit 0f25687

Browse files
committed
update install container
1 parent 32709c7 commit 0f25687

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

articles/cognitive-services/Translator/containers/translator-how-to-install-container.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: translator-text
1010
ms.topic: how-to
11-
ms.date: 10/14/2021
11+
ms.date: 08/24/2022
1212
ms.author: lajanuar
1313
recommendations: false
1414
keywords: on-premises, Docker, container, identify
@@ -24,27 +24,26 @@ See the list of [languages supported](../language-support.md) when using Transla
2424

2525
> [!IMPORTANT]
2626
>
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).
2929
3030
<!-- markdownlint-disable MD033 -->
3131

3232
## Prerequisites
3333

3434
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/).
3535

36-
You'll also need the following:
36+
You'll also need to have:
3737

3838
| Required | Purpose |
3939
|--|--|
4040
| 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> |
4141
| 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> |
4242
| 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>|
4343

44-
4544
|Optional|Purpose|
4645
|---------|----------|
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> |
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> |
4847

4948

5049
## Required elements
@@ -127,7 +126,7 @@ You can have this container and a different Azure Cognitive Services container r
127126

128127
## Query the container's Translator endpoint
129128

130-
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:
131130

132131
```curl
133132
curl -X POST "http://localhost:5000/translate?api-version=3.0&from=en&to=zh-HANS"
@@ -220,7 +219,7 @@ print(json.dumps(
220219

221220
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.
222221

223-
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:
224223

225224
```csharp
226225
using Newtonsoft.Json;

0 commit comments

Comments
 (0)