def __best_intent(self, parse_result, context=[]):
best_intent = None<EOL>best_tags = None<EOL>context_as_entities = [{'<STR_LIT>': [c]} for c in context]<EOL>for intent in self.intent_parsers:<EOL><INDENT>i, tags = intent.validate_with_tags(parse_result.get('<STR_LIT>') + context_as_entities, parse_result.get('<STR_LIT>'))<EOL>if not best_intent or (i and i.get('<STR_LIT>') > best_intent.get('<STR_LIT>')):<EOL><INDENT>best_intent = i<EOL>best_tags = tags<EOL><DEDENT><DEDENT>return best_intent, best_tags<EOL>
Decide the best intent

Args:
    parse_result(list): results used to match the best intent.
    context(list): ?

Returns:
    best_intent, best_tags:
        best_intent : The best intent for given results
        best_tags : The Tags for result