def get_pred_dict(pred_name):
    """
    Create a dict mapping predicate names to indices
    :param pred_name: list of pred names, in order
    :return: dict
    """
    return {p:i for i,p in enumerate(pred_name)}