def load_transformer(option, transformers_dict):
    """loads a dimension-reduction transformer from the users' choice.

    Args:
        option (str): selected option in the selectbox from the user
        transformers_dict (dict): dictionary of to-evaluate strings representing transformers

    Returns:
        sklearn transformer: transformer to be used to dimension-reduce language model output.
    """
    transformer = eval(transformers_dict[option])
    return transformer