pm4py.llm.abstract_ocel_features#

pm4py.llm.abstract_ocel_features(ocel: OCEL, obj_type: str, include_header: bool = True, max_len: int = 10000, debug: bool = False, enable_object_lifecycle_paths: bool = True) str[source]#

Obtains the abstraction of an object-centric event log, representing in text the features and their values.

Parameters:
  • ocel (OCEL) – object-centric event log

  • obj_type (str) – the object type that should be considered in the feature extraction

  • include_header (bool) – (boolean) includes the header in the abstraction

  • max_len (int) – maximum length of the abstraction

  • debug (bool) – enables debugging mode (telling at which point of the feature extraction you are)

  • enable_object_lifecycle_paths (bool) – enables the “lifecycle paths” feature

Return type:

str

import pm4py

ocel = pm4py.read_ocel("tests/input_data/ocel/example_log.jsonocel")
print(pm4py.llm.abstract_ocel_ocdfg(ocel))