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 logobj_type (
str
) – the object type that should be considered in the feature extractioninclude_header (
bool
) – (boolean) includes the header in the abstractionmax_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))