使用描述項來提升單字清單的信號Use descriptors to boost signal of word list

您可以將功能新增到 LUIS 應用程式來改善它的準確性。You can add features to your LUIS app to improve its accuracy. 這些功能協助 LUIS 的方式是提供某些字組和片語屬於某個應用程式網域詞彙的提示。Features help LUIS by providing hints that certain words and phrases are part of an app domain vocabulary.

描述項(片語清單)包含一組屬於相同類別的值(單字或片語),而且必須以類似的方式處理(例如,城市或產品的名稱)。A descriptor (phrase list) includes a group of values (words or phrases) that belong to the same class and must be treated similarly (for example, names of cities or products). LUIS 對於其中一個值的認識也會自動套用到其他值。What LUIS learns about one of them is automatically applied to the others as well. 這份清單與相符單字的清單實體(全文相符專案)不相同。This list is not the same thing as a list entity (exact text matches) of matched words.

描述項會將新增至應用程式域的詞彙,做為 LUIS 有關這些單字的第二個信號。A descriptor adds to the vocabulary of the app domain as a second signal to LUIS about those words.

請參閱功能概念,以瞭解使用描述項的時機和原因。Review feature concepts to understand when and why to use a descriptor.

注意

本文件使用預覽版 LUIS 入口網站This document uses the preview LUIS portal.

新增描述項Add descriptor

  1. 我的應用程式 頁面上按一下應用程式的名稱,然後按一下 組建,再按一下應用程式左側面板中的 描述Open your app by clicking its name on My Apps page, and then click Build, then click Descriptors in your app's left panel.

  2. 在 [描述項] 頁面上,按一下 [ + 新增描述元]。On the Descriptors page, click + Add Descriptor.

  3. 在 [建立新的片語清單描述元] 對話方塊中,輸入描述項的名稱,例如 CitiesIn the Create new phrase list descriptor dialog box, enter a name such as Cities for the descriptor. 在 [] 方塊中,輸入描述項的值,例如 SeattleIn the Value box, type the values of the descriptors, such as Seattle. 您可以一次輸入一個值,或輸入一組以逗號分隔的值,然後按 EnterYou can type one value at a time, or a set of values separated by commas, and then press Enter.

    新增描述元城市Add descriptor Cities

    一旦您輸入足夠的 LUIS 值,就會出現建議。Once you have entered enough values for LUIS, suggestions appear. 您可以 + 新增所有提議的值,或選取個別的詞彙。You can + Add all of the proposed values, or select individual terms.

  4. 如果新增的描述元值是可以交換使用的替代專案,請將這些值保留為可互換Keep These values are interchangeable checked if the added descriptor values are alternatives that can be used interchangeably.

  5. 選取 [完成]。Select Done. 新的描述項會加入至 [描述項] 頁面。The new descriptor is added to the Descriptors page.

注意

您可以從 [描述項] 頁面上的內容相關工具列中刪除或停用描述元。You can delete, or deactivate a descriptor from the contextual toolbar on the Descriptors page.

後續步驟Next steps

新增、編輯、刪除或停用描述元之後,請再次訓練並測試應用程式,以查看效能是否改善。After adding, editing, deleting, or deactivating a descriptor, train and test the app again to see if performance improves.