Skip to content

Commit fe4d279

Browse files
Merge pull request #95404 from diberry/diberry/1108-howto-2
[Cogsvcs] LUIS - howto - add intents
2 parents ee2efae + f0f711a commit fe4d279

File tree

3 files changed

+23
-48
lines changed

3 files changed

+23
-48
lines changed

articles/cognitive-services/LUIS/luis-how-to-add-intents.md

Lines changed: 23 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.custom: seodec18
99
ms.subservice: language-understanding
1010
ms.topic: conceptual
11-
ms.date: 10/25/2019
11+
ms.date: 11/08/2019
1212
ms.author: diberry
1313
ms.service: cognitive-services
1414
---
@@ -19,88 +19,63 @@ Add [intents](luis-concept-intent.md) to your LUIS app to identify groups of que
1919

2020
Intents are managed from top navigation bar's **Build** section, then from the left panel's **Intents**.
2121

22-
[!INCLUDE [Waiting for LUIS portal refresh](./includes/wait-v3-upgrade.md)]
22+
[!INCLUDE [Uses preview portal](includes/uses-portal-preview.md)]
2323

2424
## Add intent
2525

26-
1. On the **Intents** page, select **Create new intent**.
26+
1. In the [LUIS preview portal](https://preview.luis.ai), select **Build** to view intents.
27+
1. On the **Intents** page, select **+ Create**.
28+
1. In the **Create new intent** dialog box, enter the intent name, for example `ModifyOrder`, and select **Done**.
2729

28-
1. In the **Create new intent** dialog box, enter the intent name, `GetEmployeeInformation`, and click **Done**.
30+
> [!div class="mx-imgBorder"]
31+
> ![Add Intent](./media/luis-how-to-add-intents/Addintent-dialogbox.png)
2932
30-
![Add Intent](./media/luis-how-to-add-intents/Addintent-dialogbox.png)
33+
The intent needs example utterances.
3134

3235
## Add an example utterance
3336

34-
Example utterances are text examples of user questions or commands. To teach Language Understanding (LUIS), you need to add example utterances to an intent.
37+
Example utterances are text examples of user questions or commands. To teach Language Understanding (LUIS) when to predict this intent, you need to add example utterances to an intent. LUIS needs in the range of 15 to 30 example utterances to begin understanding the intent. Do not add example utterances in bulk. Each utterance should be carefully chosen for how it is different than examples already in the intent.
3538

36-
1. On the **GetEmployeeInformation** intent details page, enter a relevant utterance you expect from your users, such as `Does John Smith work in Seattle?` in the text box below the intent name, and then press Enter.
39+
1. On the intent details page, enter a relevant utterance you expect from your users, such as `Deliver a large cheese pizza` in the text box below the intent name, and then press Enter.
3740

38-
![Screenshot of Intents details page, with utterance highlighted](./media/luis-how-to-add-intents/add-new-utterance-to-intent.png)
41+
> [!div class="mx-imgBorder"]
42+
> ![Screenshot of Intents details page, with utterance highlighted](./media/luis-how-to-add-intents/add-new-utterance-to-intent.png)
3943
40-
LUIS converts all utterances to lowercase and adds spaces around tokens such as hyphens.
44+
LUIS converts all utterances to lowercase and adds spaces around [tokens](luis-language-support.md#tokenization) such as hyphens.
4145

4246
<a name="#intent-prediction-discrepancy-errors"></a>
4347

4448
## Intent prediction errors
4549

46-
An example utterance in an intent might have an intent prediction error between the intent the example utterance is currently in and the prediction intent determined during training.
50+
An example utterance in an intent might have an intent prediction error between the intent the example utterance is currently in and the intent determined during training.
4751

48-
To find utterance prediction errors and fix them, use the **Filter** option's **Evaluation** options of Incorrect and Unclear combined with the **View** option of **Detailed view**.
52+
To find utterance prediction errors and fix them, use the **Filter** options of Incorrect and Unclear combined with the **View** option of **Detailed view**.
4953

5054
![To find utterance prediction errors and fix them, use the Filter option.](./media/luis-how-to-add-intents/find-intent-prediction-errors.png)
5155

5256
When the filters and view are applied, and there are example utterances with errors, the example utterance list shows the utterances and the issues.
5357

54-
![![When the filters and view are applied, and there are example utterances with errors, the example utterance list shows the utterances and the issues.](./media/luis-how-to-add-intents/find-errors-in-utterances.png)](./media/luis-how-to-add-intents/find-errors-in-utterances.png#lightbox)
58+
> [!div class="mx-imgBorder"]
59+
> ![![When the filters and view are applied, and there are example utterances with errors, the example utterance list shows the utterances and the issues.](./media/luis-how-to-add-intents/find-errors-in-utterances.png)](./media/luis-how-to-add-intents/find-errors-in-utterances.png#lightbox)
5560
5661
Each row shows the current training's prediction score for the example utterance, the nearest rival's score, which is the difference in these two scores.
5762

5863
### Fixing intents
5964

6065
To learn how to fix intent prediction errors, use the [Summary Dashboard](luis-how-to-use-dashboard.md). The summary dashboard provides analysis for the active version's last training and offers the top suggestions to fix your model.
6166

62-
## Add a custom entity
63-
64-
Once an utterance is added to an intent, you can select text from within the utterance to create a custom entity. A custom entity is a way to tag text for extraction, along with the correct intent.
65-
66-
See [Add entity to utterance](luis-how-to-add-example-utterances.md) to learn more.
67-
68-
## Entity prediction discrepancy errors
69-
70-
The entity is underlined in red to indicate an [entity prediction discrepancy](luis-how-to-add-example-utterances.md#entity-status-predictions). Because this is the first occurrence of an entity, there are not enough examples for LUIS to have a high-confidence that this text is tagged with the correct entity. This discrepancy is removed when the app is trained.
71-
72-
![Screenshot of Intents details page, custom entity name highlighted in blue](./media/luis-how-to-add-intents/create-custom-entity-name-blue-highlight.png)
73-
74-
The text is highlighted in blue, indicating an entity.
75-
76-
## Add a prebuilt entity
77-
78-
For information, see [Prebuilt entity](luis-how-to-add-entities.md#add-a-prebuilt-entity-to-your-app).
79-
8067
## Using the contextual toolbar
8168

82-
When one or more example utterances are selected in the list, by checking the box to the left of an utterance, the toolbar above the utterance list allows you to perform the following actions:
83-
84-
* Reassign intent: move utterance(s) to different intent
85-
* Delete utterance(s)
86-
* Entity filters: only show utterances containing filtered entities
87-
* Show all/Errors only: show utterances with prediction errors or show all utterances
88-
* Entities/Tokens view: show entities view with entity names or show raw text of utterance
89-
* Magnifying glass: search for utterances containing specific text
90-
91-
## Working with an individual utterance
92-
93-
The following actions can be performed on an individual utterance from the ellipsis menu to the right of the utterance:
94-
95-
* Edit: change the text of the utterance
96-
* Delete: remove the utterance from the intent. If you still want the utterance, a better method is to move it to the **None** intent.
97-
* Add a pattern: A pattern allows you to take a common utterance and mark replaceable text and ignorable text, thereby reducing the need for more utterances in the intent.
69+
The context toolbar provides other actions:
9870

99-
The **Labeled intent** column allows you to change the intent of the utterance.
71+
* Edit or delete example utterance
72+
* Reassign example utterance to a different intent
73+
* Filters and views: only show utterances containing filtered entities or view optional details
74+
* Search through example utterances
10075

10176
## Train your app after changing model with intents
10277

103-
After you add, edit, or remove intents, [train](luis-how-to-train.md) and [publish](luis-how-to-publish-app.md) your app so that your changes are applied to endpoint queries.
78+
After you add, edit, or remove intents, [train](luis-how-to-train.md) and [publish](luis-how-to-publish-app.md) your app so that your changes are applied to endpoint queries. Do not train after every single change. Train after a group of changes.
10479

10580
## Next steps
10681

1.46 KB
Loading
17.2 KB
Loading

0 commit comments

Comments
 (0)