|
| 1 | +--- |
| 2 | +title: Label entity example utterance |
| 3 | +titleSuffix: Azure Cognitive Services |
| 4 | +description: Learn how to label a machine-learned entity with subcomponents in an example utterance in an intent detail page of the LUIS portal. |
| 5 | +services: cognitive-services |
| 6 | +author: diberry |
| 7 | +manager: nitinme |
| 8 | +ms.service: cognitive-services |
| 9 | +ms.subservice: language-understanding |
| 10 | +ms.topic: quickstart |
| 11 | +ms.date: 11/15/2019 |
| 12 | +ms.author: diberry |
| 13 | +#Customer intent: As a new user, I want to label a machine-learned entity in an example utterance. |
| 14 | +--- |
| 15 | + |
| 16 | +# Label machine-learned entity in an example utterance |
| 17 | + |
| 18 | +Labeling an entity in an example utterance shows LUIS has an example of the entity is and where the entity can appear in the utterance. |
| 19 | + |
| 20 | +## Labeling machine-learned entity |
| 21 | + |
| 22 | +Consider the phrase, `hi, please I want a cheese pizza in 20 minutes`. |
| 23 | + |
| 24 | +1. Select the left-most text, then select the right-most text of the entity. The _complete order_ is labeled in the following image. |
| 25 | + |
| 26 | + > [!div class="mx-imgBorder"] |
| 27 | + >  |
| 28 | +
|
| 29 | +1. Select the entity from the pop-up window. The labeled complete pizza order entity includes all words (from left to right in English) that are labeled. |
| 30 | + |
| 31 | +> [!TIP] |
| 32 | +> The entities available in the pop-up window are relative to the context in which the text appears. For example, if you have a 5-level machine-learned entity, and you are selecting text at the 3rd level (indicated by a labeled entity name under the example utterance), the entities available in the pop-up window are limited to the context of subcomponents of the 3rd level (4th level subcomponents). |
| 33 | +
|
| 34 | +## Review labeled text |
| 35 | + |
| 36 | +After labeling, review the example utterance. LUIS applies the current model to the example utterance after labeling. The solid line indicates the text has been labeled. |
| 37 | + |
| 38 | +> [!div class="mx-imgBorder"] |
| 39 | +>  |
| 40 | +
|
| 41 | +## When to train |
| 42 | + |
| 43 | +If the current model should support your labeled entity, but the example utterance continues to show the text as predicted but not labeled, train your app. |
| 44 | + |
| 45 | +## Confirm predicted entity |
| 46 | + |
| 47 | +If the visual indicator is above the utterance, it indicates the text is predicted but _not labeled yet_. To turn the prediction into a label, select the utterance, then select **Confirm entity predictions**. |
| 48 | + |
| 49 | +> [!div class="mx-imgBorder"] |
| 50 | +>  |
| 51 | +
|
| 52 | +## Label subcomponent entity by painting with entity palette cursor |
| 53 | + |
| 54 | +1. In order to correct predictions (entities, which appear above the example utterance), open the entity palette. |
| 55 | + |
| 56 | + > [!div class="mx-imgBorder"] |
| 57 | + >  |
| 58 | +
|
| 59 | +1. Select the entity subcomponent. This action is visually indicated with a new cursor. The cursor follows the mouse as you move in the portal. |
| 60 | + |
| 61 | + > [!div class="mx-imgBorder"] |
| 62 | + >  |
| 63 | +
|
| 64 | +1. In the example utterance, _paint_ the entity with the cursor. |
| 65 | + |
| 66 | + > [!div class="mx-imgBorder"] |
| 67 | + >  |
| 68 | +
|
| 69 | +## Labeling matching-text entities to a machine-learned entity |
| 70 | + |
| 71 | +Matching-text entities include prebuilt entities, regular expression entities, and list entities. You add these to a machine-learned entity, as constraints to a subcomponent, when you create or edit the machine-learned entity. |
| 72 | + |
| 73 | +**Once these constraints are added, you do not need to label the matching text in the example utterance.** |
| 74 | + |
| 75 | +## Entity prediction errors |
| 76 | + |
| 77 | +Entity prediction errors show a caution indicator. This indicates the predicted entity doesn't match the labeled entity. |
| 78 | + |
| 79 | +> [!div class="mx-imgBorder"] |
| 80 | +>  |
| 81 | +
|
| 82 | +## Next steps |
| 83 | + |
| 84 | +Use the [dashboard](luis-how-to-use-dashboard.md) and [review endpoint utterances](luis-how-to-review-endpoint-utterances.md) to improve the prediction quality of your app. |
0 commit comments