LuisDialog<TResult>.BestIntentFrom(LuisResult) 方法

定义

计算从 LuisResult的最佳分数IntentRecommendation

protected virtual Microsoft.Bot.Builder.Luis.Models.IntentRecommendation BestIntentFrom (Microsoft.Bot.Builder.Luis.Models.LuisResult result);
abstract member BestIntentFrom : Microsoft.Bot.Builder.Luis.Models.LuisResult -> Microsoft.Bot.Builder.Luis.Models.IntentRecommendation
override this.BestIntentFrom : Microsoft.Bot.Builder.Luis.Models.LuisResult -> Microsoft.Bot.Builder.Luis.Models.IntentRecommendation
Protected Overridable Function BestIntentFrom (result As LuisResult) As IntentRecommendation

参数

result
LuisResult

LUIS 服务调用的结果。

返回

得分最佳的 IntentRecommendation,如果不包含任何意向,则 result 为 null。

适用于