PredictionOperations 類別
PredictionOperations 作業。
您不應該直接具現化這個類別,而是建立將為您建立的 Client 實例,並將它附加為屬性。
- 繼承
-
builtins.objectPredictionOperations
建構函式
PredictionOperations(client, config, serializer, deserializer)
參數
名稱 | Description |
---|---|
client
必要
|
服務要求的用戶端。 |
config
必要
|
服務用戶端的設定。 |
serializer
必要
|
物件模型序列化程式。 |
deserializer
必要
|
物件模型還原序列化程式。 |
方法
get_slot_prediction |
取得應用程式位置的預測。 |
get_version_prediction |
取得應用程式版本的預測。 |
get_slot_prediction
取得應用程式位置的預測。
get_slot_prediction(app_id, slot_name, prediction_request, verbose=None, show_all_intents=None, log=None, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
slot_name
必要
|
應用程式位置名稱。 |
prediction_request
必要
|
預測要求參數。 |
verbose
|
指出是否要取得實體預測的額外中繼資料。 預設值: None
|
show_all_intents
|
指出是否要傳迴響應中的所有意圖,還是只傳回最上層的意圖。 預設值: None
|
log
|
指出是否要記錄端點查詢。 預設值: None
|
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回直接回應與還原序列化回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
PredictionResponse 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
get_version_prediction
取得應用程式版本的預測。
get_version_prediction(app_id, version_id, prediction_request, verbose=None, show_all_intents=None, log=None, custom_headers=None, raw=False, **operation_config)
參數
名稱 | Description |
---|---|
app_id
必要
|
應用程式識別碼。 |
version_id
必要
|
應用程式版本識別碼。 |
prediction_request
必要
|
預測要求參數。 |
verbose
|
指出是否要取得實體預測的額外中繼資料。 預設值: None
|
show_all_intents
|
指出是否要傳迴響應中的所有意圖,還是只傳回最上層的意圖。 預設值: None
|
log
|
指出是否要記錄端點查詢。 預設值: None
|
custom_headers
|
將新增至要求的標頭 預設值: None
|
raw
|
傳回直接回應與還原序列化回應 預設值: False
|
operation_config
必要
|
作業組態覆寫。 |
傳回
類型 | Description |
---|---|
<xref:msrest.pipeline.ClientRawResponse>
|
PredictionResponse 或 ClientRawResponse if raw=true |
例外狀況
類型 | Description |
---|---|
屬性
models
models = <module 'azure.cognitiveservices.language.luis.runtime.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\runtime\\models\\__init__.py'>
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應