pm4py.objects.ocel.util.ocel_type_renaming module#

pm4py.objects.ocel.util.ocel_type_renaming.remove_spaces_non_alphanumeric_characters_from_types(ocel: OCEL) OCEL[source]#

Creates a copy of the object-centric event log in which spaces and non-alphanumeric characters inside the event/object types are stripped

Parameters:

ocel – Object-centric event log

Returns:

Object-centric event log with stripped types

Return type:

ocel

pm4py.objects.ocel.util.ocel_type_renaming.abbreviate_event_types(ocel: OCEL) OCEL[source]#

Creates a copy of the object-centric event log in which the event types are replaced by the letters of the alphabet (A being the most frequent event type, …). This is particularly useful to textually abstract the object-centric event log.

Parameters:

ocel – Object-centric event log

Returns:

Object-centric event log with alphabetical event types

Return type:

ocel