dicee.static_preprocess_funcs ============================= .. py:module:: dicee.static_preprocess_funcs Attributes ---------- .. autoapisummary:: dicee.static_preprocess_funcs.enable_log Functions --------- .. autoapisummary:: dicee.static_preprocess_funcs.timeit dicee.static_preprocess_funcs.preprocesses_input_args dicee.static_preprocess_funcs.create_constraints dicee.static_preprocess_funcs.get_er_vocab dicee.static_preprocess_funcs.get_re_vocab dicee.static_preprocess_funcs.get_ee_vocab dicee.static_preprocess_funcs.mapping_from_first_two_cols_to_third Module Contents --------------- .. py:data:: enable_log :value: False .. py:function:: timeit(func) .. py:function:: preprocesses_input_args(args) Sanity Checking in input arguments .. py:function:: create_constraints(triples: numpy.ndarray) -> Tuple[dict, dict, dict, dict] (1) Extract domains and ranges of relations (2) Store a mapping from relations to entities that are outside of the domain and range. Create constraints entities based on the range of relations :param triples: :return: .. py:function:: get_er_vocab(data) .. py:function:: get_re_vocab(data) .. py:function:: get_ee_vocab(data) .. py:function:: mapping_from_first_two_cols_to_third(train_set_idx)