Skip to content

Commit e081e5a

Browse files
committed
clu updates
1 parent 081fd07 commit e081e5a

File tree

2 files changed

+14
-164
lines changed
  • articles/cognitive-services/Speech-Service/includes/quickstarts/intent-recognition-clu

2 files changed

+14
-164
lines changed

articles/cognitive-services/Speech-Service/includes/quickstarts/intent-recognition-clu/cpp.md

Lines changed: 7 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ Follow these steps to create a new console application and install the Speech SD
9393
std::cout << "RECOGNIZED: Text=" << result->Text << std::endl;
9494
std::cout << " Intent Id: " << result->IntentId << std::endl;
9595
96-
// The IntentService_DetailedResult property is a temporary preview and will be replaced
97-
// by LanguageUnderstandingServiceResponse_JsonResult in a future release.
98-
std::cout << " Intent Service JSON: " << result->Properties.GetProperty("IntentService_DetailedResult") << std::endl;
99-
//std::cout << " Intent Service JSON: " << result->Properties.GetProperty(PropertyId::LanguageUnderstandingServiceResponse_JsonResult) << std::endl;
96+
// There is a known issue with the LanguageUnderstandingServiceResponse_JsonResult
97+
// property when used with CLU in the Speech SDK version 1.25.
98+
// The following should return JSON in a future release.
99+
std::cout << " Intent Service JSON: " << result->Properties.GetProperty(PropertyId::LanguageUnderstandingServiceResponse_JsonResult) << std::endl;
100100
}
101101
else if (result->Reason == ResultReason::RecognizedSpeech)
102102
{
@@ -153,86 +153,11 @@ Speak into your microphone when prompted. What you speak should be output as tex
153153
Say something ...
154154
RECOGNIZED: Text=Go ahead and delete the e-mail.
155155
Intent Id: Delete.
156-
Language Understanding JSON: {"kind":"ConversationResult","result":{"query":"go ahead and delete the email","prediction":{"topIntent":"Delete","projectKind":"Conversation","intents":[{"category":"Delete","confidenceScore":0.95413816},{"category":"Cancel","confidenceScore":0.8985081},{"category":"SendEmail","confidenceScore":0.76236105},{"category":"Confirm","confidenceScore":0.7585944},{"category":"QueryLastText","confidenceScore":0.7434454},{"category":"CheckMessages","confidenceScore":0.70770377},{"category":"SearchMessages","confidenceScore":0.7021245},{"category":"ReadAloud","confidenceScore":0.6168782},{"category":"AddMore","confidenceScore":0.6116944},{"category":"Reply","confidenceScore":0.6059992},{"category":"ShowNext","confidenceScore":0.5359252},{"category":"AddFlag","confidenceScore":0.504695},{"category":"ShowPrevious","confidenceScore":0.49446106},{"category":"Forward","confidenceScore":0.41094807},{"category":"None","confidenceScore":0.34945187}],"entities":[]}}}.
156+
Language Understanding JSON:
157157
```
158158

159-
The intents are returned in the probability order of most likely to least likely. Here's a formatted version of the JSON output where the `topIntent` is `Delete` with a confidence score of 0.95413816 (95.41%):
160-
161-
```json
162-
{
163-
"kind": "ConversationResult",
164-
"result": {
165-
"query": "go ahead and delete the email",
166-
"prediction": {
167-
"topIntent": "Delete",
168-
"projectKind": "Conversation",
169-
"intents": [
170-
{
171-
"category": "Delete",
172-
"confidenceScore": 0.95413816
173-
},
174-
{
175-
"category": "Cancel",
176-
"confidenceScore": 0.8985081
177-
},
178-
{
179-
"category": "SendEmail",
180-
"confidenceScore": 0.76236105
181-
},
182-
{
183-
"category": "Confirm",
184-
"confidenceScore": 0.7585944
185-
},
186-
{
187-
"category": "QueryLastText",
188-
"confidenceScore": 0.7434454
189-
},
190-
{
191-
"category": "CheckMessages",
192-
"confidenceScore": 0.70770377
193-
},
194-
{
195-
"category": "SearchMessages",
196-
"confidenceScore": 0.7021245
197-
},
198-
{
199-
"category": "ReadAloud",
200-
"confidenceScore": 0.6168782
201-
},
202-
{
203-
"category": "AddMore",
204-
"confidenceScore": 0.6116944
205-
},
206-
{
207-
"category": "Reply",
208-
"confidenceScore": 0.6059992
209-
},
210-
{
211-
"category": "ShowNext",
212-
"confidenceScore": 0.5359252
213-
},
214-
{
215-
"category": "AddFlag",
216-
"confidenceScore": 0.504695
217-
},
218-
{
219-
"category": "ShowPrevious",
220-
"confidenceScore": 0.49446106
221-
},
222-
{
223-
"category": "Forward",
224-
"confidenceScore": 0.41094807
225-
},
226-
{
227-
"category": "None",
228-
"confidenceScore": 0.34945187
229-
}
230-
],
231-
"entities": []
232-
}
233-
}
234-
}
235-
```
159+
> [NOTE]
160+
> There is a known issue with the LanguageUnderstandingServiceResponse_JsonResult property when used with CLU in the Speech SDK version 1.25. You can get detailed JSON output in a future release. Via JSON, the intents are returned in the probability order of most likely to least likely. For example, the `topIntent` might be `Delete` with a confidence score of 0.95413816 (95.41%). The second most likely intent might be `Cancel` with a confidence score of 0.8985081 (89.85%).
236161
237162
## Remarks
238163
Now that you've completed the quickstart, here are some additional considerations:

articles/cognitive-services/Speech-Service/includes/quickstarts/intent-recognition-clu/csharp.md

Lines changed: 7 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ Follow these steps to create a new console application and install the Speech SD
8989
Console.WriteLine($"RECOGNIZED: Text={recognitionResult.Text}");
9090
Console.WriteLine($" Intent Id: {recognitionResult.IntentId}.");
9191
92-
// The IntentService_DetailedResult property is a temporary preview and will be replaced
93-
// by LanguageUnderstandingServiceResponse_JsonResult in a future release.
94-
Console.WriteLine($" Language Understanding JSON: {recognitionResult.Properties.GetProperty("IntentService_DetailedResult")}.");
95-
//Console.WriteLine($" Language Understanding JSON: {recognitionResult.Properties.GetProperty(PropertyId.LanguageUnderstandingServiceResponse_JsonResult)}.");
92+
// There is a known issue with the LanguageUnderstandingServiceResponse_JsonResult
93+
// property when used with CLU in the Speech SDK version 1.25.
94+
// The following should return JSON in a future release.
95+
Console.WriteLine($" Language Understanding JSON: {recognitionResult.Properties.GetProperty(PropertyId.LanguageUnderstandingServiceResponse_JsonResult)}.");
9696
}
9797
else if (recognitionResult.Reason == ResultReason.RecognizedSpeech)
9898
{
@@ -138,86 +138,11 @@ Speak into your microphone when prompted. What you speak should be output as tex
138138
Say something ...
139139
RECOGNIZED: Text=Go ahead and delete the e-mail.
140140
Intent Id: Delete.
141-
Language Understanding JSON: {"kind":"ConversationResult","result":{"query":"go ahead and delete the email","prediction":{"topIntent":"Delete","projectKind":"Conversation","intents":[{"category":"Delete","confidenceScore":0.95413816},{"category":"Cancel","confidenceScore":0.8985081},{"category":"SendEmail","confidenceScore":0.76236105},{"category":"Confirm","confidenceScore":0.7585944},{"category":"QueryLastText","confidenceScore":0.7434454},{"category":"CheckMessages","confidenceScore":0.70770377},{"category":"SearchMessages","confidenceScore":0.7021245},{"category":"ReadAloud","confidenceScore":0.6168782},{"category":"AddMore","confidenceScore":0.6116944},{"category":"Reply","confidenceScore":0.6059992},{"category":"ShowNext","confidenceScore":0.5359252},{"category":"AddFlag","confidenceScore":0.504695},{"category":"ShowPrevious","confidenceScore":0.49446106},{"category":"Forward","confidenceScore":0.41094807},{"category":"None","confidenceScore":0.34945187}],"entities":[]}}}.
141+
Language Understanding JSON:
142142
```
143143

144-
The intents are returned in the probability order of most likely to least likely. Here's a formatted version of the JSON output where the `topIntent` is `Delete` with a confidence score of 0.95413816 (95.41%):
145-
146-
```json
147-
{
148-
"kind": "ConversationResult",
149-
"result": {
150-
"query": "go ahead and delete the email",
151-
"prediction": {
152-
"topIntent": "Delete",
153-
"projectKind": "Conversation",
154-
"intents": [
155-
{
156-
"category": "Delete",
157-
"confidenceScore": 0.95413816
158-
},
159-
{
160-
"category": "Cancel",
161-
"confidenceScore": 0.8985081
162-
},
163-
{
164-
"category": "SendEmail",
165-
"confidenceScore": 0.76236105
166-
},
167-
{
168-
"category": "Confirm",
169-
"confidenceScore": 0.7585944
170-
},
171-
{
172-
"category": "QueryLastText",
173-
"confidenceScore": 0.7434454
174-
},
175-
{
176-
"category": "CheckMessages",
177-
"confidenceScore": 0.70770377
178-
},
179-
{
180-
"category": "SearchMessages",
181-
"confidenceScore": 0.7021245
182-
},
183-
{
184-
"category": "ReadAloud",
185-
"confidenceScore": 0.6168782
186-
},
187-
{
188-
"category": "AddMore",
189-
"confidenceScore": 0.6116944
190-
},
191-
{
192-
"category": "Reply",
193-
"confidenceScore": 0.6059992
194-
},
195-
{
196-
"category": "ShowNext",
197-
"confidenceScore": 0.5359252
198-
},
199-
{
200-
"category": "AddFlag",
201-
"confidenceScore": 0.504695
202-
},
203-
{
204-
"category": "ShowPrevious",
205-
"confidenceScore": 0.49446106
206-
},
207-
{
208-
"category": "Forward",
209-
"confidenceScore": 0.41094807
210-
},
211-
{
212-
"category": "None",
213-
"confidenceScore": 0.34945187
214-
}
215-
],
216-
"entities": []
217-
}
218-
}
219-
}
220-
```
144+
> [NOTE]
145+
> There is a known issue with the LanguageUnderstandingServiceResponse_JsonResult property when used with CLU in the Speech SDK version 1.25. You can get detailed JSON output in a future release. Via JSON, the intents are returned in the probability order of most likely to least likely. For example, the `topIntent` might be `Delete` with a confidence score of 0.95413816 (95.41%). The second most likely intent might be `Cancel` with a confidence score of 0.8985081 (89.85%).
221146
222147
## Remarks
223148
Now that you've completed the quickstart, here are some additional considerations:

0 commit comments

Comments
 (0)