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
Copy file name to clipboardExpand all lines: articles/ai-services/cognitive-services-container-support.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ Azure AI containers provide the following set of Docker containers, each of whic
56
56
|[Language service][ta-containers-pii]|**Personally Identifiable Information (PII) detection** ([image](https://mcr.microsoft.com/en-us/product/azure-cognitive-services/textanalytics/pii/tags))| Detect and redact personally identifiable information entities from text. | Generally available. <br>This container can also [run in disconnected environments](containers/disconnected-containers.md). |
57
57
|[Language service][ta-containers-cner]|**Custom Named Entity Recognition** ([image](https://mcr.microsoft.com/product/azure-cognitive-services/textanalytics/customner/about))| Extract named entities from text, using a custom model you create using your data. | Generally available |
58
58
|[Language service][ta-containers-summarization]|**Summarization** ([image](https://mcr.microsoft.com/product/azure-cognitive-services/textanalytics/summarization/about))| Summarize text from various sources. | Public preview. <br>This container can also [run in disconnected environments](containers/disconnected-containers.md). |
59
+
|[Language service][ta-containers-clu]|**Conversational Language Understanding** ([image](https://mcr.microsoft.com/product/azure-cognitive-services/textanalytics/clu/about))| Interpret conversational language. | Generally Available. <br>This container can also [run in disconnected environments](containers/disconnected-containers.md). |
59
60
|[Translator][tr-containers]|**Translator** ([image](https://mcr.microsoft.com/product/azure-cognitive-services/translator/text-translation/about))| Translate text in several languages and dialects. | Generally available. Gated - [request access](https://aka.ms/csgate-translator). <br>This container can also [run in disconnected environments](containers/disconnected-containers.md). |
60
61
61
62
### Speech containers
@@ -132,6 +133,7 @@ Install and explore the functionality provided by containers in Azure AI service
*[Personally Identifiable Information (PII) detection](../language-service/personally-identifiable-information/how-to/use-containers.md#run-the-container-disconnected-from-the-internet)
94
+
*[Conversational Language Understanding (CLU)](../language-service/conversational-language-understanding/how-to/use-containers.md#run-the-container-disconnected-from-the-internet)
93
95
94
96
## Environment variable names in Kubernetes deployments
95
97
Some Azure AI Containers, for example Translator, require users to pass environmental variable names that include colons (`:`) when running the container. This will work fine when using Docker, but Kubernetes does not accept colons in environmental variable names.
CPU core and memory correspond to the `--cpus` and `--memory` settings, which are used as part of the `docker run` command.
51
51
52
+
## Export your Conversational Language Understanding model
53
+
54
+
Before you proceed with running the docker image, you will need to export your own trained model to expose it to your container. Use the following command to extract your model and replace the placeholders below with your own values:
55
+
56
+
|Placeholder |Value|Format or example|
57
+
|------------|-----|-----------------|
58
+
|**{API_KEY}**|The key for your Language resource. You can find it on your resource's **Key and endpoint** page, on the Azure portal.|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|
59
+
|**{ENDPOINT_URI}**|The endpoint for accessing the Conversational Language Understanding API. You can find it on your resource's **Key and endpoint** page, on the Azure portal.|https://<your-custom-subdomain>.cognitiveservices.azure.com|
60
+
|**{PROJECT_NAME}**|The name of the project containing the model that you want to export. You can find it on your projects tab in the Language Studio portal.|myProject|
61
+
|**{TRAINED_MODEL_NAME}** |The name of the trained model you want to export. You can find your trained models on your model evaluation tab under your project in the Language Studio portal|myTrainedModel
62
+
|**{EXPORTED_MODEL_NAME}**|The name to assign for the new exported model created.|myExportedModel |
63
+
64
+
```bash
65
+
curl --location --request PUT '{ENDPOINT_URI}/language/authoring/analyze-conversations/projects/{PROJECT_NAME}/exported-models/{EXPORTED_MODEL_NAME}?api-version=2024-11-15-preview'\
66
+
--header 'Ocp-Apim-Subscription-Key: {API_KEY}'\
67
+
--header 'Content-Type: application/json'\
68
+
--data-raw '{
69
+
"TrainedModelLabel": "{TRAINED_MODEL_NAME}"
70
+
}'
71
+
```
72
+
52
73
## Get the container image with `docker pull`
53
74
54
-
The CLU container image can be found on the `mcr.microsoft.com` container registry syndicate. It resides within the `azure-cognitive-services/textanalytics/` repository and is named `clu`. The fully qualified container image name is, `mcr.microsoft.com/azure-cognitive-services/textanalytics/clu`
75
+
The CLU container image can be found on the `mcr.microsoft.com` container registry syndicate. It resides within the `azure-cognitive-services/language/` repository and is named `clu`. The fully qualified container image name is, `mcr.microsoft.com/azure-cognitive-services/language/clu`
55
76
56
-
To use the latest version of the container, you can use the `latest` tag, which is for English. You can also find a full list of containers for supported languages using the [tags on the MCR](https://mcr.microsoft.com/product/azure-cognitive-services/textanalytics/clu/tags).
77
+
To use the latest version of the container, you can use the `latest` tag, which is for English. You can also find a full list of containers for supported languages using the [tags on the MCR](https://mcr.microsoft.com/product/azure-cognitive-services/language/clu/tags).
57
78
58
79
The latest CLU container is available in several languages. To download the container for the English container, use the command below.
[!INCLUDE [Tip for using docker list](../../../includes/cognitive-services-containers-docker-list-tip.md)]
65
86
87
+
## Run the container in download model mode
88
+
89
+
After creating the exported model in the section above, users will have to run the container in order to download the deployment package that was created specifically for their exported models.
90
+
91
+
|Placeholder|Value|Format or example|
92
+
|-----------|-----|-----------------|
93
+
|**{API_KEY}** |The key for your Language resource. You can find it on your resource's **Key and endpoint** page, on the Azure portal. |xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|
94
+
|**{ENDPOINT_URI}**|The endpoint for accessing the API. You can find it on your resource's **Key and endpoint** page, on the Azure portal. |https://<your-custom-subdomain>.cognitiveservices.azure.com |
95
+
|**{IMAGE_TAG}**|The image tag representing the language of the container you want to run. Make sure this matches the `docker pull` command you used. |latest |
96
+
|**{LOCAL_CLU_PORT}**|Port number assigned for the container in local machine. |5000 |
97
+
|**{LOCAL_MODEL_DIRECTORY}**|Absolute directory in host machine where exported models will be saved in. |C:\usr\local\myDeploymentPackage |
98
+
|**{PROJECT_NAME}**|Name of the project that the exported model belongs to |myProject |
99
+
|**{EXPORTED_MODEL_NAME}**|Exported model to be downloaded |myExportedModel |
DO NOT alter the downloaded files. Even altering the name or folder structure can affect the integrity of the container and might break it.
113
+
114
+
Repeat those steps to download as many models as you'd like to test. They can belong to different projects and have different exported model names.
115
+
66
116
## Run the container with `docker run`
67
117
68
118
Once the container is on the host computer, use the [docker run](https://docs.docker.com/engine/reference/commandline/run/) command to run the containers. The container will continue to run until you stop it. Replace the placeholders below with your own values:
@@ -79,10 +129,14 @@ To run the CLU container, execute the following `docker run` command. Replace th
79
129
|**{API_KEY}**| The key for your Language resource. You can find it on your resource's **Key and endpoint** page, on the Azure portal. |`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`|
80
130
|**{ENDPOINT_URI}**| The endpoint for accessing the API. You can find it on your resource's **Key and endpoint** page, on the Azure portal. |`https://<your-custom-subdomain>.cognitiveservices.azure.com`|
81
131
|**{IMAGE_TAG}**| The image tag representing the language of the container you want to run. Make sure this matches the `docker pull` command you used. |`latest`|
132
+
|**{LOCAL_CLU_PORT}**|Port number assigned for the container in local machine. |5000 |
133
+
|**{LOCAL_NER_PORT}**|Port number of the NER container. See Run NER Container section below. |5001 (Has to be different that the above port number) |
134
+
|**{LOCAL_LOGGING_DIRECTORY}**|Absolute directory in host machine where that logs will be saved in. |C:\usr\local\mylogs |
135
+
|**{LOCAL_MODEL_DIRECTORY}**|Absolute directory in host machine where exported models are saved in. |C:\usr\local\myDeploymentPackage |
[!INCLUDE [Running multiple containers on the same host](../../../includes/cognitive-services-containers-run-multiple-same-host.md)]
99
153
154
+
## Running NER Container
155
+
CLU relies on NER to handle prebuilt entities. The CLU container will work properly without NER if users decide not to integrate it. NER billing is disabled when it’s used through CLU, no extra charges are generated unless a call is made directly to NER’s container.
156
+
157
+
To set NER up in CLU container
158
+
- Follow the [NER container documentation](../../named-entity-recognition/how-to/use-containers.md).
159
+
- When running CLU container, make sure to set the parameter `Ner_Url `so that `Ner_Url=http://host.docker.internal:{LOCAL_NER_PORT}`
160
+
100
161
## Query the container's prediction endpoint
101
162
102
163
The container provides REST-based query prediction endpoint APIs.
0 commit comments