def load_languages(language, languages_dict):
    """loads the language from the string-dict loaded from the config

    Args:
        language (str): selectbox choice for the language model from the user
        languages_dict (dict): dict containing to-evaluate strings of the language

    Returns:
        tfhub language or transformers language or whatlies language: language model to encode texts
    """
    return eval(languages_dict[language])