def get_most_likely_category(pertinence_probabilities, use_similarity_concept=True):
    """
    Gets the most likely category among the provided pertinence probabilities per model

    :rtype : object
    :param pertinence_probabilities: The pertinence probabilities per model
    :param use_similarity_concept: Whether to use a similarity measure or not

    :return: The most likely category
    """

    # sorting by model pertinence
    sorted_by_pertinence = sorted(pertinence_probabilities, key=lambda t: t[1], reverse=use_similarity_concept)

    # returning the model key for the model with highest probability of pertinence
    return sorted_by_pertinence[0][0]