pm4py.objects.log.util.log_regex module#
- pm4py.objects.log.util.log_regex.get_encoded_trace(trace, mapping, parameters=None)[source]#
Gets the encoding of the provided trace
- Parameters:
trace – Trace of the event log
mapping – Mapping (activity to symbol)
- Returns:
Trace string
- Return type:
trace_str
- pm4py.objects.log.util.log_regex.get_encoded_log(log, mapping, parameters=None)[source]#
Gets the encoding of the provided log
- Parameters:
log – Event log
mapping – Mapping (activity to symbol)
- Returns:
List of encoded strings
- Return type:
list_str
- pm4py.objects.log.util.log_regex.form_encoding_dictio_from_log(log, parameters=None)[source]#
Forms the encoding dictionary from the current log
- Parameters:
log – Event log
parameters – Parameters of the algorithm
- Returns:
Encoding dictionary
- Return type:
encoding_dictio
- pm4py.objects.log.util.log_regex.form_encoding_dictio_from_two_logs(log1: EventLog, log2: EventLog, parameters=None) Dict[str, str][source]#
Forms the encoding dictionary from a couple of logs
- Parameters:
log1 – First log
log2 – Second log
parameters – Parameters of the algorithm
- Returns:
Encoding dictionary
- Return type:
encoding_dictio