libraries/botbuilder-ai/botbuilder/ai/luis/recognizer_result.py
def get_top_scoring_intent(self) -> TopIntent:
        """Return the top scoring intent and its score.
        
        :return: Intent and score.
        :rtype: TopIntent
        """

        if self.intents is None:
            raise TypeError("result.intents can't be None")

        top_intent = TopIntent(intent="", score=0.0)
        for intent_name, intent_score in self.intents.items():
            score = intent_score.score
            if score > top_intent[1]:
                top_intent = TopIntent(intent_name, score)

        return top_intent
def get_top_scoring_intent(self) -> TopIntent:
        """Return the top scoring intent and its score.
        
        :return: Intent and score.
        :rtype: TopIntent
        """

        if self.intents is None:
            raise TypeError("result.intents can't be None")

        top_intent = TopIntent(intent="", score=0.0)
        for intent_name, intent_score in self.intents.items():
            score = intent_score.score
            if score > top_intent[1]:
                top_intent = TopIntent(intent_name, score)

        return top_intent
def get_top_scoring_intent ( self ) -> TopIntent : if self . intents is None : raise TypeError ( "result.intents can't be None" ) top_intent = TopIntent ( intent = "" , score = 0.0 ) for intent_name , intent_score in self . intents . items ( ) : score = intent_score . score if score > top_intent [ 1 ] : top_intent = TopIntent ( intent_name , score ) return top_intent
Return the top scoring intent and its score.
        
        :return: Intent and score.
        :rtype: TopIntent
Return the top scoring intent and its score . : return : Intent and score . : rtype : TopIntent