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
Conversational Language Understanding - aka **CLU** for short - is a cloud-based conversational AI service which provides many language understanding capabilities like:
5
5
- Conversation App: It's used in extracting intents and entities in conversations
6
6
- Workflow app: Acts like an orchestrator to select the best candidate to analyze conversations to get best response from apps like Qna, Luis, and Conversation App
7
-
- Conversational Summarization: Used to summarize conversations in the form of issues, and final resolutions
8
-
- Conversational PII: Used to extract and redact personally-identifiable info (PII)
In order to interact with the CLU service, you'll need to create an instance of the [ConversationAnalysisClient][conversationanalysis_client_class] class. You will need an **endpoint**, and an **API key** to instantiate a client object. For more information regarding authenticating with Cognitive Services, see [Authenticate requests to Azure Cognitive Services][cognitive_auth].
34
+
In order to interact with the CLU service, you'll need to create an instance of the [ConversationAnalysisClient][conversationanalysis_client_class] class, or [ConversationAuthoringClient][conversationauthoring_client_class] class. You will need an **endpoint**, and an **API key** to instantiate a client object. For more information regarding authenticating with Cognitive Services, see [Authenticate requests to Azure Cognitive Services][cognitive_auth].
36
35
37
36
#### Get an API key
38
37
You can get the **endpoint** and an **API key** from the Cognitive Services resource in the [Azure Portal][azure_portal].
The [ConversationAnalysisClient][conversationanalysis_client_class] is the primary interface for making predictions using your deployed Conversations models. For asynchronous operations, an async `ConversationAnalysisClient` is in the `azure.ai.language.conversation.aio` namespace.
64
75
76
+
### ConversationAnalysisClient
77
+
You can use the [ConversationAuthoringClient][conversationauthoring_client_class] to interface with the [Azure Language Portal][azure_language_portal] to carry out authoring operations on your language resource/project. For example, you can use it to create a project, populate with training data, train, test, and deploy. For asynchronous operations, an async `ConversationAnalysisClient` is in the `azure.ai.language.conversation.authoring.aio` namespace.
78
+
65
79
## Examples
66
80
The `azure-ai-language-conversation` client library provides both synchronous and asynchronous APIs.
67
81
@@ -134,7 +148,6 @@ for entity in result["result"]["prediction"]["entities"]:
134
148
print("key: {}".format(data["key"]))
135
149
if data["extraInformationKind"] =="EntitySubtype":
136
150
print("value: {}".format(data["value"]))
137
-
138
151
```
139
152
140
153
### Analyze Text with an Orchestration App
@@ -197,198 +210,65 @@ if top_intent_object["targetProjectKind"] == "Luis":
197
210
print("\nentities:")
198
211
for entity in luis_response["entities"]:
199
212
print("\n{}".format(entity))
200
-
201
213
```
202
214
203
-
### Conversational Summarization
204
-
205
-
You can use this sample if you need to summarize a conversation in the form of an issue, and final resolution. For example, a dialog from tech support:
215
+
### Import a Conversation Project
216
+
This sample shows a common scenario for the authoring part of the SDK
206
217
207
218
```python
208
-
# import libraries
209
219
import os
210
220
from azure.core.credentials import AzureKeyCredential
221
+
from azure.ai.language.conversations.authoring import ConversationAuthoringClient
211
222
212
-
from azure.ai.language.conversations import ConversationAnalysisClient
0 commit comments