@staticmethod<EOL><INDENT>def top_intent(<EOL>results: RecognizerResult, default_intent: str = "<STR_LIT:None>", min_score: float = <NUM_LIT:0.0><EOL>) -> str:<DEDENT>
if results is None:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>top_intent: str = None<EOL>top_score: float = -<NUM_LIT:1.0><EOL>if results.intents:<EOL><INDENT>for intent_name, intent_score in results.intents.items():<EOL><INDENT>score = intent_score.score<EOL>if score > top_score and score >= min_score:<EOL><INDENT>top_intent = intent_name<EOL>top_score = score<EOL><DEDENT><DEDENT><DEDENT>return top_intent or default_intent<EOL>
Returns the name of the top scoring intent from a set of LUIS results.

        :param results: Result set to be searched.
        :type results: RecognizerResult
        :param default_intent: Intent name to return should a top intent be found, defaults to "None"
        :param default_intent: str, optional
        :param min_score: 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 0.0
        :param min_score: float, optional
        :raises TypeError:
        :return: The top scoring intent name.
        :rtype: str