dicee.static_preprocess_funcs

Attributes

enable_log

Functions

timeit(func)

preprocesses_input_args(args)

Sanity Checking in input arguments

create_constraints(→ Tuple[dict, dict, dict, dict])

get_er_vocab(data)

get_re_vocab(data)

get_ee_vocab(data)

mapping_from_first_two_cols_to_third(train_set_idx)

Module Contents

dicee.static_preprocess_funcs.enable_log = False
dicee.static_preprocess_funcs.timeit(func)[source]
dicee.static_preprocess_funcs.preprocesses_input_args(args)[source]

Sanity Checking in input arguments

dicee.static_preprocess_funcs.create_constraints(triples: numpy.ndarray) Tuple[dict, dict, dict, dict][source]
  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:

dicee.static_preprocess_funcs.get_er_vocab(data)[source]
dicee.static_preprocess_funcs.get_re_vocab(data)[source]
dicee.static_preprocess_funcs.get_ee_vocab(data)[source]
dicee.static_preprocess_funcs.mapping_from_first_two_cols_to_third(train_set_idx)[source]