pm4py.openai.abstract_ocel_features#

pm4py.openai.abstract_ocel_features(ocel: OCEL, obj_type: str, include_header: bool = True, max_len: int = 10000) 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

Return type:

str

import pm4py

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