Skip to content

Commit bbc7eda

Browse files
authored
Merge pull request #96634 from diberry/diberry/1120-hack-tutorial-intents
[Cogsvcs] HACK - tutorial intents
2 parents c8b1ab2 + 4ff5081 commit bbc7eda

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

articles/cognitive-services/LUIS/includes/add-example-utterances-none-intent.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,24 @@ ms.service: cognitive-services
88
ms.subservice: luis
99
ms.topic: include
1010
ms.custom: include file
11-
ms.date: 11/05/2019
11+
ms.date: 11/20/2019
1212
ms.author: diberry
1313
---
1414

15-
The client application needs to know if an utterance is not meaningful or appropriate for the application. The **None** intent is added to each application as part of the creation process to determine if an utterance can't be answered by the client application.
15+
The client application needs to know if an utterance is not meaningful or appropriate for the application. The **None** intent is added to each application as part of the creation process to determine if an utterance shouldn't be answered by the client application.
1616

1717
If LUIS returns the **None** intent for an utterance, your client application can ask if the user wants to end the conversation or give more directions for continuing the conversation.
1818

1919
If you leave the **None** intent empty, an utterance that should be predicted outside the subject domain will be predicted in one of the existing subject domain intents. The result is that the client application, such as a chat bot, will perform incorrect operations based on an incorrect prediction.
2020

2121
1. Select **Intents** from the left panel.
2222

23-
1. Select the **None** intent. Add three utterances that your user might enter but are not relevant to your app:
23+
1. Select the **None** intent. Add three utterances that your user might enter but are not relevant to your Pizza ordering app:
2424

2525
|`None` example utterances|
2626
|--|
2727
|`Barking dogs are annoying`|
2828
|`Order a pizza for me`|
2929
|`Penguins in the ocean`|
30+
31+
These examples shouldn't use words you expect in your subject domain such as `pizza`, `cheese`, `crust`, `pickup` `deliver`.

articles/cognitive-services/LUIS/includes/howto-publish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In order to receive a LUIS prediction in a chat bot or other client application,
2323

2424
![LUIS publish to endpoint](../media/howto-publish/publish-app-popup.png)
2525

26-
3. Publishing is complete when you see the green status bar at the top of the website confirming success.
26+
3. Publishing is complete when you see the status bar at the top of the page confirming success.
2727

2828
![LUIS publish to endpoint](../media/howto-publish/publish-endpoint-success.png)
2929

articles/cognitive-services/LUIS/tutorial-intents-only.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ ms.custom: seodec18
99
ms.service: cognitive-services
1010
ms.subservice: language-understanding
1111
ms.topic: tutorial
12-
ms.date: 11/05/2019
12+
ms.date: 11/20/2019
1313
ms.author: diberry
1414
#Customer intent: As a new user, I want to create a custom app with intents, so that I can analyze user text in that subject domain.
1515
---
1616

17-
# Tutorial: Build LUIS app to determine user intentions
17+
# Tutorial: Build a LUIS app to determine user intentions
1818

1919
In this tutorial, you create a custom app that predicts a user's intention based on the utterance (text).
2020

@@ -54,7 +54,7 @@ These intentions are categorized into **Intents**.
5454

5555
## Create a new intent
5656

57-
1. In the [preview LUIS portal](https://preview.luis.ai), inside the app's **Build** section, select **+ Create**. Enter the new intent name listed below then select **Done**.
57+
1. In the portal, inside the app's **Build** section, select **+ Create**. Enter the new intent name, `OrderPizza`, then select **Done**.
5858

5959
The `OrderPizza` intent is predicted when: a user wants to order a pizza.
6060

@@ -118,7 +118,7 @@ These intentions are categorized into **Intents**.
118118

119119
This is not exactly the same as an example utterance so it is a good test to see if LUIS can learn what should be predicted with this intent.
120120

121-
The last query string parameter is `q`, the utterance **query**. This utterance is not the same as any of the example utterances. It is a good test and should return the `OrderPizza` intent as the top scoring intent.
121+
The last query string parameter is `query`, the utterance **query**. This utterance is not the same as any of the example utterances. It is a good test and should return the `OrderPizza` intent as the top scoring intent.
122122

123123
```JSON
124124
{
@@ -144,7 +144,7 @@ These intentions are categorized into **Intents**.
144144
}
145145
```
146146

147-
The entities array is empty because this app currently does not have any entities.
147+
The entities array is empty because this app currently does not have any entities (unit of data inside the utterance to extract).
148148

149149
The JSON result identifies the top scoring intent as **`prediction.topIntent`** property. All scores are between 1 and 0, with the better score being closer to 1.
150150

@@ -201,4 +201,4 @@ After LUIS returns the JSON response, LUIS is done with this request. LUIS doesn
201201
This tutorial created a LUIS app, created intents, added example utterances to each intent, added example utterances to the None intent, trained, published, and tested at the endpoint. These are the basic steps of building a LUIS model.
202202

203203
> [!div class="nextstepaction"]
204-
> [Add prebuilt intents and entities to this app](tutorial-machine-learned-entity.md)
204+
> [Add a decomposable entity to this app](tutorial-machine-learned-entity.md)

0 commit comments

Comments
 (0)