LuisRecognizer 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
LuisRecognizer(LuisRecognizerOptions, HttpClientHandler)
初始化 LuisRecognizer 類別的新執行個體。
public LuisRecognizer (Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions recognizerOptions, System.Net.Http.HttpClientHandler clientHandler = default);
new Microsoft.Bot.Builder.AI.Luis.LuisRecognizer : Microsoft.Bot.Builder.AI.Luis.LuisRecognizerOptions * System.Net.Http.HttpClientHandler -> Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
Public Sub New (recognizerOptions As LuisRecognizerOptions, Optional clientHandler As HttpClientHandler = Nothing)
參數
- recognizerOptions
- LuisRecognizerOptions
LUIS 辨識器版本選項。
- clientHandler
- HttpClientHandler
(選擇性) LUIS API 呼叫的自訂處理常式,以允許模擬。
適用於
LuisRecognizer(LuisApplication, LuisPredictionOptions, Boolean, HttpClientHandler)
警告
Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).
初始化 LuisRecognizer 類別的新執行個體。
[System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")]
public LuisRecognizer (Microsoft.Bot.Builder.AI.Luis.LuisApplication application, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions = default, bool includeApiResults = false, System.Net.Http.HttpClientHandler clientHandler = default);
[<System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")>]
new Microsoft.Bot.Builder.AI.Luis.LuisRecognizer : Microsoft.Bot.Builder.AI.Luis.LuisApplication * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * bool * System.Net.Http.HttpClientHandler -> Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
Public Sub New (application As LuisApplication, Optional predictionOptions As LuisPredictionOptions = Nothing, Optional includeApiResults As Boolean = false, Optional clientHandler As HttpClientHandler = Nothing)
參數
- application
- LuisApplication
用來辨識文字的 LUIS 應用程式。
- predictionOptions
- LuisPredictionOptions
(選擇性) 要使用的 LUIS 預測選項。
- includeApiResults
- Boolean
(選擇性) TRUE 以包含原始 LUIS API 回應。
- clientHandler
- HttpClientHandler
(選擇性) LUIS API 呼叫的自訂處理常式,以允許模擬。
- 屬性
適用於
LuisRecognizer(LuisService, LuisPredictionOptions, Boolean, HttpClientHandler)
警告
Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).
初始化 LuisRecognizer 類別的新執行個體。
[System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")]
public LuisRecognizer (Microsoft.Bot.Configuration.LuisService service, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions = default, bool includeApiResults = false, System.Net.Http.HttpClientHandler clientHandler = default);
[<System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")>]
new Microsoft.Bot.Builder.AI.Luis.LuisRecognizer : Microsoft.Bot.Configuration.LuisService * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * bool * System.Net.Http.HttpClientHandler -> Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
Public Sub New (service As LuisService, Optional predictionOptions As LuisPredictionOptions = Nothing, Optional includeApiResults As Boolean = false, Optional clientHandler As HttpClientHandler = Nothing)
參數
- service
- LuisService
來自組態的 LUIS 服務。
- predictionOptions
- LuisPredictionOptions
(選擇性) 要使用的 LUIS 預測選項。
- includeApiResults
- Boolean
(選擇性) TRUE 以包含原始 LUIS API 回應。
- clientHandler
- HttpClientHandler
(選擇性) LUIS API 呼叫的自訂處理常式,以允許模擬。
- 屬性
適用於
LuisRecognizer(String, LuisPredictionOptions, Boolean, HttpClientHandler)
警告
Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).
初始化 LuisRecognizer 類別的新執行個體。
[System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")]
public LuisRecognizer (string applicationEndpoint, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions = default, bool includeApiResults = false, System.Net.Http.HttpClientHandler clientHandler = default);
[<System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")>]
new Microsoft.Bot.Builder.AI.Luis.LuisRecognizer : string * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * bool * System.Net.Http.HttpClientHandler -> Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
Public Sub New (applicationEndpoint As String, Optional predictionOptions As LuisPredictionOptions = Nothing, Optional includeApiResults As Boolean = false, Optional clientHandler As HttpClientHandler = Nothing)
參數
- applicationEndpoint
- String
LUIS 端點,如 所示 https://luis.ai 。
- predictionOptions
- LuisPredictionOptions
(選擇性) 要使用的 LUIS 預測選項。
- includeApiResults
- Boolean
(選擇性) TRUE 以包含原始 LUIS API 回應。
- clientHandler
- HttpClientHandler
(選擇性) LUIS API 呼叫的自訂處理常式,以允許模擬。
- 屬性
適用於
LuisRecognizer(LuisApplication, IBotTelemetryClient, Boolean, LuisPredictionOptions, Boolean, HttpClientHandler)
警告
Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).
初始化 LuisRecognizer 類別的新執行個體。
[System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")]
public LuisRecognizer (Microsoft.Bot.Builder.AI.Luis.LuisApplication application, Microsoft.Bot.Builder.IBotTelemetryClient telemetryClient, bool logPersonalInformation, Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions predictionOptions = default, bool includeApiResults = false, System.Net.Http.HttpClientHandler clientHandler = default);
[<System.Obsolete("Constructor is deprecated, please use LuisRecognizer(LuisRecognizerOptions recognizer).")>]
new Microsoft.Bot.Builder.AI.Luis.LuisRecognizer : Microsoft.Bot.Builder.AI.Luis.LuisApplication * Microsoft.Bot.Builder.IBotTelemetryClient * bool * Microsoft.Bot.Builder.AI.Luis.LuisPredictionOptions * bool * System.Net.Http.HttpClientHandler -> Microsoft.Bot.Builder.AI.Luis.LuisRecognizer
Public Sub New (application As LuisApplication, telemetryClient As IBotTelemetryClient, logPersonalInformation As Boolean, Optional predictionOptions As LuisPredictionOptions = Nothing, Optional includeApiResults As Boolean = false, Optional clientHandler As HttpClientHandler = Nothing)
參數
- application
- LuisApplication
用來辨識文字的 LUIS 應用程式。
- telemetryClient
- IBotTelemetryClient
用來記錄 LuisResult 事件的 IBotTelemetryClient。
- logPersonalInformation
- Boolean
TRUE 表示包含個人識別資訊。
- predictionOptions
- LuisPredictionOptions
(選擇性) 要使用的 LUIS 預測選項。
- includeApiResults
- Boolean
(選擇性) TRUE 以包含原始 LUIS API 回應。
- clientHandler
- HttpClientHandler
(選擇性) LUIS API 呼叫的自訂處理常式,以允許模擬。
- 屬性