LuisRecognizer.TopIntent(RecognizerResult, String, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the name of the top scoring intent from a set of LUIS results.
public static string TopIntent (Microsoft.Bot.Builder.RecognizerResult results, string defaultIntent = "None", double minScore = 0);
static member TopIntent : Microsoft.Bot.Builder.RecognizerResult * string * double -> string
Public Shared Function TopIntent (results As RecognizerResult, Optional defaultIntent As String = "None", Optional minScore As Double = 0) As String
Parameters
- results
- RecognizerResult
Result set to be searched.
- defaultIntent
- String
(Optional) Intent name to return should a top intent be found. Defaults to a value of "None".
- minScore
- Double
(Optional) Minimum score needed for an intent to be considered as a top intent. If all intents in the set are below this threshold then the defaultIntent
will be returned. Defaults to a value of 0.0
.
Returns
The top scoring intent name.