如何在 LUIS 入口網站中審查用於主動式學習的端點語句How to review endpoint utterances in LUIS portal for active learning

主動式學習會捕捉端點查詢,並選取不確定的使用者端點語句。Active learning captures endpoint queries and selects user's endpoint utterances that it is unsure of. 您可以檢查這些語句來選取意圖,並標記這些讀取世界語句的實體。You review these utterances to select the intent and mark entities for these read-world utterances. 在您的範例語句中接受這些變更,然後進行定型和發佈。Accept these changes into your example utterances then train and publish. 然後,LUIS 會更準確地識別語句。LUIS then identifies utterances more accurately.

警告

本文件尚未更新為最新 LUIS 入口網站的文字和螢幕擷取畫面。This document has not been updated with text and screenshots for the latest LUIS portal.

啟用主動式學習Enable active learning

若要啟用主動式學習,請記錄使用者查詢。To enable active learning, log user queries. 這是藉由使用 log=true querystring 參數和值來設定端點查詢來完成。This is accomplished by setting the endpoint query with the log=true querystring parameter and value.

停用主動式學習Disable active learning

若要停用主動式學習,請不要記錄使用者查詢。To disable active learning, don't log user queries. 這是藉由使用 log=false querystring 參數和值來設定端點查詢來完成。This is accomplished by setting the endpoint query with the log=false querystring parameter and value.

篩選語句Filter utterances

  1. 在 [我的應用程式] 頁面上選取您的應用程式名稱加以開啟 (例如,TravelAgent),然後選取頂端列中的 [建置]。Open your app (for example, TravelAgent) by selecting its name on My Apps page, then select Build in the top bar.

  2. 在 [改善應用程式效能] 之下,選取 [檢閱端點意圖]。Under the Improve app performance, select Review endpoint utterances.

  3. 在 [檢閱端點意圖] 頁面上,選取 [依意圖或實體篩選器清單] 文字方塊。On the Review endpoint utterances page, select in the Filter list by intent or entity text box. 此下拉式清單包含 [意圖] 之下的所有意圖,以及 [實體] 之下的所有實體。This drop-down list includes all intents under INTENTS and all entities under ENTITIES.

    語句篩選條件

  4. 在下拉式清單中選取類別 (意圖或實體) 並檢閱意圖。Select a category (intents or entities) in the drop-down list and review the utterances.

    意圖語句

標示實體Label entities

LUIS 會以藍色醒目提示的實體名稱取代實體語彙基元 (字組)。LUIS replaces entity tokens (words) with entity names highlighted in blue. 如果語句有未標示的實體,請在語句中加以標示。If an utterance has unlabeled entities, label them in the utterance.

  1. 在語句中選取字組。Select on the word(s) in the utterance.

  2. 從清單中選取實體。Select an entity from the list.

    標示實體

對齊單一語句Align single utterance

每個意圖都有建議的意圖顯示在 [一致的意圖] 資料行中。Each utterance has a suggested intent displayed in the Aligned intent column.

  1. 如果您同意該建議,請選取核取記號。If you agree with that suggestion, select on the check mark.

    保留一致的意圖

  2. 如果您不同意該建議,請從一致的意圖下拉式清單中選取正確的意圖,然後選取一致的意圖右邊的核取記號。If you disagree with the suggestion, select the correct intent from the aligned intent drop-down list, then select on the check mark to the right of the aligned intent.

    對齊意圖

  3. 在您選取核取記號之後,語句就會從清單中移除。After you select on the check mark, the utterance is removed from the list.

對齊數個語句Align several utterances

若要對齊數個語句,請核取語句左邊的方塊,然後選取 [新增所選] 按鈕。To align several utterances, check the box to the left of the utterances, then select on the Add selected button.

對齊數個

驗證一致的意圖Verify aligned intent

您可以移至 [意圖] 頁面,選取意圖名稱,然後檢閱意圖,以確認語句與正確的意圖一致。You can verify the utterance was aligned with the correct intent by going to the Intents page, select the intent name, and reviewing the utterances. [檢閱端點意圖] 中的意圖會位於清單中。The utterance from Review endpoint utterances is in the list.

刪除語句Delete utterance

您可以從檢閱清單中刪除每個語句。Each utterance can be deleted from the review list. 刪除後,它就不再出現於清單中。Once deleted, it will not appear in the list again. 即使使用者從端點輸入相同意圖,情況也是如此。This is true even if the user enters the same utterance from the endpoint.

如果您不確定是否應該刪除意圖,請將它移至 [無] 意圖,或建立新意圖 (例如「其他」) 並將語句移至該意圖。If you are unsure if you should delete the utterance, either move it to the None intent, or create a new intent such as "miscellaneous" and move the utterance to that intent.

刪除數個語句Delete several utterances

若要刪除數個語句,請選取每個項目並選取 [新增所選] 按鈕右側的垃圾桶。To delete several utterances, select each item and select on the trash bin to the right of the Add selected button.

刪除數個

後續步驟Next steps

若要在您標示建議的語句之後,測試效能有何改善,您可以選取頂端面板中的 [測試] 來存取測試主控台。To test how performance improves after you label suggested utterances, you can access the test console by selecting Test in the top panel. 如需有關如何使用測試主控台來測試應用程式的指示,請參閱訓練和測試您的應用程式For instructions on how to test your app using the test console, see Train and test your app.